fix memory leak in CQ
This commit is contained in:
parent
0d097101a5
commit
2fc2feb876
|
@ -109,6 +109,8 @@ void cqClose(void *handle) {
|
||||||
while (pObj) {
|
while (pObj) {
|
||||||
SCqObj *pTemp = pObj;
|
SCqObj *pTemp = pObj;
|
||||||
pObj = pObj->next;
|
pObj = pObj->next;
|
||||||
|
tdFreeSchema(pTemp->pSchema);
|
||||||
|
tfree(pTemp->sqlStr);
|
||||||
free(pTemp);
|
free(pTemp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue