fix:error in CI

This commit is contained in:
wangmm0220 2022-09-19 16:34:07 +08:00
parent 345b68ccee
commit c379a35fb3
2 changed files with 2 additions and 3 deletions

View File

@ -388,8 +388,8 @@ int metaTtlSmaller(SMeta *pMeta, uint64_t ttl, SArray *uidList) {
} }
ttlKey = *(STtlIdxKey *)pKey; ttlKey = *(STtlIdxKey *)pKey;
taosArrayPush(uidList, &ttlKey.uid); taosArrayPush(uidList, &ttlKey.uid);
tdbFree(pKey);
} }
tdbFree(pKey);
tdbTbcClose(pCur); tdbTbcClose(pCur);
return 0; return 0;
} }

View File

@ -1153,8 +1153,7 @@ int32_t toJsonFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *pOu
memcpy(tmp, varDataVal(input), varDataLen(input)); memcpy(tmp, varDataVal(input), varDataLen(input));
tmp[varDataLen(input)] = 0; tmp[varDataLen(input)] = 0;
if(parseJsontoTagData(tmp, pTagVals, &pTag, NULL)){ if(parseJsontoTagData(tmp, pTagVals, &pTag, NULL)){
taosArrayDestroy(pTagVals); tTagNew(pTagVals, 1, true, &pTag);
return TSDB_CODE_FAILED;
} }
} }