fix: free error
This commit is contained in:
parent
165875ac4f
commit
bac7820375
|
@ -936,11 +936,12 @@ int32_t ctgEnqueue(SCatalog *pCtg, SCtgCacheOperation *operation) {
|
||||||
CTG_LOCK(CTG_READ, &gCtgMgmt.lock);
|
CTG_LOCK(CTG_READ, &gCtgMgmt.lock);
|
||||||
}
|
}
|
||||||
TAOS_UNUSED(tsem_destroy(&operation->rspSem));
|
TAOS_UNUSED(tsem_destroy(&operation->rspSem));
|
||||||
taosMemoryFree(operation);
|
taosMemoryFreeClear(operation);
|
||||||
}
|
}
|
||||||
|
return code;
|
||||||
|
|
||||||
_return:
|
_return:
|
||||||
if (syncOp) {
|
if (syncOp && operation) {
|
||||||
TAOS_UNUSED(tsem_destroy(&operation->rspSem));
|
TAOS_UNUSED(tsem_destroy(&operation->rspSem));
|
||||||
}
|
}
|
||||||
return code;
|
return code;
|
||||||
|
|
Loading…
Reference in New Issue