From 9ef435986304f95d90cdbe294620b807fe03c3e6 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Sun, 7 Feb 2021 13:21:11 +0800 Subject: [PATCH] [td-225] add comments. --- src/query/src/queryMain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/query/src/queryMain.c b/src/query/src/queryMain.c index b362f1d104..e262a3ad38 100644 --- a/src/query/src/queryMain.c +++ b/src/query/src/queryMain.c @@ -353,6 +353,7 @@ int32_t qDumpRetrieveResult(qinfo_t qinfo, SRetrieveTableRsp **pRsp, int32_t *co qDebug("QInfo:%p has more results to retrieve", pQInfo); } + // the memory should be freed if the code of pQInfo is not TSDB_CODE_SUCCESS if (pQInfo->code != TSDB_CODE_SUCCESS) { rpcFreeCont(*pRsp); *pRsp = NULL; -- GitLab