unused pointer

This commit is contained in:
xsren 2024-09-30 10:31:54 +08:00
parent 5a85303c37
commit 165875ac4f
1 changed files with 2 additions and 2 deletions

View File

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