fix: free error

This commit is contained in:
xsren 2024-09-30 17:48:30 +08:00
parent 165875ac4f
commit bac7820375
1 changed files with 3 additions and 2 deletions

View File

@ -936,11 +936,12 @@ int32_t ctgEnqueue(SCatalog *pCtg, SCtgCacheOperation *operation) {
CTG_LOCK(CTG_READ, &gCtgMgmt.lock);
}
TAOS_UNUSED(tsem_destroy(&operation->rspSem));
taosMemoryFree(operation);
taosMemoryFreeClear(operation);
}
return code;
_return:
if (syncOp) {
if (syncOp && operation) {
TAOS_UNUSED(tsem_destroy(&operation->rspSem));
}
return code;