fix: coverity issues

CID: 354715
This commit is contained in:
Ganlin Zhao 2022-10-17 10:59:32 +08:00
parent bcf2cfeed7
commit 84817bf743
1 changed files with 1 additions and 0 deletions

View File

@ -366,6 +366,7 @@ static int32_t toBinary(SVariant *pVariant, char **pDest, int32_t *pDestSize) {
} }
if (pBuf != NULL) { if (pBuf != NULL) {
taosMemoryFree(pVariant->pz);
*pDest = pBuf; *pDest = pBuf;
} }