Merge pull request #28063 from taosdata/fix/TS-5194/handler

fix: handler leak
This commit is contained in:
Pan Wei 2024-09-24 14:50:55 +08:00 committed by GitHub
commit 5c651b99f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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);
return NULL;
}
code = tsem_destroy(&param->sem);
if(TSDB_CODE_SUCCESS != code) {
tscError("failed to destroy semaphore since %s", tstrerror(code));
}
SRequestObj* pRequest = NULL;
if (param->pRequest != NULL) {