From c4f06b799e1d5dd4295fa4cb12339bf29c35c7df Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 12 Nov 2024 14:57:49 +0900 Subject: [PATCH] Add back setting of member variable in init fn --- src/another_memcheck.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/another_memcheck.cc b/src/another_memcheck.cc index 94a8ea9..c68a0e0 100644 --- a/src/another_memcheck.cc +++ b/src/another_memcheck.cc @@ -89,6 +89,8 @@ namespace SC_AM_Internal { malloced_list_head->data = nullptr; malloced_list_tail->data = nullptr; + deferred_node = nullptr; + recursive_mutex = real_malloc(sizeof(std::recursive_mutex)); void *unused = new(recursive_mutex) std::recursive_mutex{}; (void)unused;