From 858a6bae2e2555ddbf8778152ebedd01645ae1c1 Mon Sep 17 00:00:00 2001 From: obdev Date: Wed, 15 Feb 2023 12:11:42 +0000 Subject: [PATCH] fix spmset ref count leak when inserting inner table failed --- src/sql/plan_cache/ob_lib_cache_node_factory.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sql/plan_cache/ob_lib_cache_node_factory.cpp b/src/sql/plan_cache/ob_lib_cache_node_factory.cpp index b6189122ef..fced933793 100644 --- a/src/sql/plan_cache/ob_lib_cache_node_factory.cpp +++ b/src/sql/plan_cache/ob_lib_cache_node_factory.cpp @@ -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;