fix: handler leak

This commit is contained in:
xsren 2024-09-24 11:45:12 +08:00
parent a7a5c44666
commit 86d985f103
1 changed files with 4 additions and 0 deletions

View File

@ -2895,6 +2895,10 @@ TAOS_RES* taosQueryImpl(TAOS* taos, const char* sql, bool validateOnly, int8_t s
taosMemoryFree(param); taosMemoryFree(param);
return NULL; return NULL;
} }
code = tsem_destroy(&param->sem);
if(TSDB_CODE_SUCCESS != code) {
tscError("failed to destroy semaphore since %s", tstrerror(code));
}
SRequestObj* pRequest = NULL; SRequestObj* pRequest = NULL;
if (param->pRequest != NULL) { if (param->pRequest != NULL) {