Merge pull request #2131 from taosdata/yiBuf
fix crash caused by double free when fail to initQInfo
This commit is contained in:
commit
2add3b3ef9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue