fix mem leak

This commit is contained in:
yihaoDeng 2021-02-04 22:42:34 +00:00
parent 5e060605d8
commit 780fe1eded
1 changed files with 4 additions and 1 deletions

View File

@ -7649,7 +7649,10 @@ int32_t qDumpRetrieveResult(qinfo_t qinfo, SRetrieveTableRsp **pRsp, int32_t *co
*continueExec = true;
qDebug("QInfo:%p has more results to retrieve", pQInfo);
}
if (pQInfo->code != TSDB_CODE_SUCCESS) {
rpcFreeCont(*pRsp);
*pRsp = NULL;
}
return pQInfo->code;
}