crimson/seastore: fix heap-used-after-free bug

Signed-off-by: chunmei <chunmei.liu@intel.com>
This commit is contained in:
chunmei 2023-04-18 09:33:52 +00:00
parent f79b94300e
commit 6a121c0852

View File

@ -152,7 +152,7 @@ class tree_cursor_t final
eagain_ifuture<> trim_value(context_t, value_size_t);
static Ref<tree_cursor_t> get_invalid() {
static Ref<tree_cursor_t> INVALID = new tree_cursor_t();
Ref<tree_cursor_t> INVALID = new tree_cursor_t();
return INVALID;
}