fix spmset ref count leak when inserting inner table failed

This commit is contained in:
obdev
2023-02-15 12:11:42 +00:00
committed by ob-robot
parent 5bf5e1b1d4
commit 858a6bae2e

View File

@ -65,6 +65,7 @@ void ObLCNodeFactory::destroy_cache_node(ObILibCacheNode* node)
}
// regardless of whether before_cache_evicted succeeds or fails, the cache node
// will be evicted. so ignore the error code here
ret = OB_SUCCESS;
lib::MemoryContext entity = node->get_mem_context();
WITH_CONTEXT(entity) { node->~ObILibCacheNode(); }
node = NULL;