From 6a121c0852332ec122b5e659744eb622f2e15c58 Mon Sep 17 00:00:00 2001 From: chunmei Date: Tue, 18 Apr 2023 09:33:52 +0000 Subject: [PATCH] crimson/seastore: fix heap-used-after-free bug Signed-off-by: chunmei --- src/crimson/os/seastore/onode_manager/staged-fltree/node.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crimson/os/seastore/onode_manager/staged-fltree/node.h b/src/crimson/os/seastore/onode_manager/staged-fltree/node.h index 4ba1d5b5887..0b764172e50 100644 --- a/src/crimson/os/seastore/onode_manager/staged-fltree/node.h +++ b/src/crimson/os/seastore/onode_manager/staged-fltree/node.h @@ -152,7 +152,7 @@ class tree_cursor_t final eagain_ifuture<> trim_value(context_t, value_size_t); static Ref get_invalid() { - static Ref INVALID = new tree_cursor_t(); + Ref INVALID = new tree_cursor_t(); return INVALID; }