Merge pull request #2131 from taosdata/yiBuf

fix crash caused by double free when fail to initQInfo
This commit is contained in:
Shengliang Guan 2020-06-04 16:48:14 +08:00 committed by GitHub
commit 2add3b3ef9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -5858,7 +5858,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;
}