fix a memory leak for null value projection in tags.
This commit is contained in:
parent
d80ec2aad8
commit
2735c95624
|
@ -4525,10 +4525,11 @@ static void doSetTagValueInParam(tTagSchema *pTagSchema, int32_t tagColIdx, SMet
|
||||||
SSchema *pCol = &pTagSchema->pSchema[tagColIdx];
|
SSchema *pCol = &pTagSchema->pSchema[tagColIdx];
|
||||||
|
|
||||||
tVariantDestroy(param);
|
tVariantDestroy(param);
|
||||||
tVariantCreateFromBinary(param, pStr, pCol->bytes, pCol->type);
|
|
||||||
|
|
||||||
if (isNull(pStr, pCol->type)) {
|
if (isNull(pStr, pCol->type)) {
|
||||||
param->nType = TSDB_DATA_TYPE_NULL;
|
param->nType = TSDB_DATA_TYPE_NULL;
|
||||||
|
} else {
|
||||||
|
tVariantCreateFromBinary(param, pStr, pCol->bytes, pCol->type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue