提交 90311bb4 编写于 作者: G Ganlin Zhao

[TD-5623]<feature>: fix malloc pointer issue

上级 91c5deb9
......@@ -2681,7 +2681,7 @@ int tscProcessQueryRsp(SSqlObj *pSql) {
static void decompressQueryColData(SSqlRes *pRes, SQueryInfo* pQueryInfo, char *data, int8_t compressed, int compLen) {
int32_t decompLen = 0;
int32_t numOfCols = pQueryInfo->fieldsInfo.numOfOutput;
int32_t *compSizes = tcalloc(numOfCols, sizeof(int32_t));
int32_t *compSizes;
char *pData = data;
compSizes = (int32_t *)(pData + compLen);
......@@ -2701,7 +2701,6 @@ static void decompressQueryColData(SSqlRes *pRes, SQueryInfo* pQueryInfo, char *
pData += compSizes[i];
}
tfree(outputBuf);
tfree(compSizes);
}
int tscProcessRetrieveRspFromNode(SSqlObj *pSql) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册