提交 2735c956 编写于 作者: H hjxilinx

fix a memory leak for null value projection in tags.

上级 d80ec2aa
......@@ -4525,10 +4525,11 @@ static void doSetTagValueInParam(tTagSchema *pTagSchema, int32_t tagColIdx, SMet
SSchema *pCol = &pTagSchema->pSchema[tagColIdx];
tVariantDestroy(param);
tVariantCreateFromBinary(param, pStr, pCol->bytes, pCol->type);
if (isNull(pStr, pCol->type)) {
param->nType = TSDB_DATA_TYPE_NULL;
} else {
tVariantCreateFromBinary(param, pStr, pCol->bytes, pCol->type);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册