fix memory leak in CQ

This commit is contained in:
Bomin Zhang 2020-07-07 11:53:34 +08:00
parent 0d097101a5
commit 2fc2feb876
1 changed files with 2 additions and 0 deletions

View File

@ -109,6 +109,8 @@ void cqClose(void *handle) {
while (pObj) {
SCqObj *pTemp = pObj;
pObj = pObj->next;
tdFreeSchema(pTemp->pSchema);
tfree(pTemp->sqlStr);
free(pTemp);
}