fix: handler leak
This commit is contained in:
parent
a7a5c44666
commit
86d985f103
|
@ -2895,6 +2895,10 @@ TAOS_RES* taosQueryImpl(TAOS* taos, const char* sql, bool validateOnly, int8_t s
|
|||
taosMemoryFree(param);
|
||||
return NULL;
|
||||
}
|
||||
code = tsem_destroy(¶m->sem);
|
||||
if(TSDB_CODE_SUCCESS != code) {
|
||||
tscError("failed to destroy semaphore since %s", tstrerror(code));
|
||||
}
|
||||
|
||||
SRequestObj* pRequest = NULL;
|
||||
if (param->pRequest != NULL) {
|
||||
|
|
Loading…
Reference in New Issue