chore: revert

This commit is contained in:
kailixu 2023-05-08 15:00:40 +08:00
parent a99db2e39a
commit 49ad732517
1 changed files with 4 additions and 3 deletions

View File

@ -388,10 +388,11 @@ void doDestroyRequest(void *p) {
deregisterRequest(pRequest);
}
if (pRequest->body.param) {
tsem_destroy(&((SSyncQueryParam *)pRequest->body.param)->sem);
if (pRequest->syncQuery) {
if (pRequest->body.param) {
tsem_destroy(&((SSyncQueryParam *)pRequest->body.param)->sem);
}
taosMemoryFree(pRequest->body.param);
pRequest->body.param = NULL;
}
qDestroyQuery(pRequest->pQuery);