fix crash caused by double free when fail to initQInfo

This commit is contained in:
dengyihao 2020-06-04 06:07:53 +00:00
parent 4913ce5897
commit 57b8617fa4
1 changed files with 1 additions and 1 deletions

View File

@ -5870,7 +5870,7 @@ _over:
taosArrayDestroy(pTableIdList);
if (code != TSDB_CODE_SUCCESS) {
tfree(*pQInfo);
//pQInfo already freed in initQInfo, but *pQInfo may not pointer to null;
*pQInfo = NULL;
}