From 2174b52dc4362f2855821cac9e4fb6e89ca68b69 Mon Sep 17 00:00:00 2001 From: Xinyi Zou Date: Sun, 18 Sep 2022 00:36:47 +0800 Subject: [PATCH] Fix memory leak by calling in mem hook --- be/src/runtime/memory/mem_tracker_limiter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/be/src/runtime/memory/mem_tracker_limiter.cpp b/be/src/runtime/memory/mem_tracker_limiter.cpp index e09e1493c87f88..a1fdb60f9daeb4 100644 --- a/be/src/runtime/memory/mem_tracker_limiter.cpp +++ b/be/src/runtime/memory/mem_tracker_limiter.cpp @@ -213,7 +213,8 @@ void MemTrackerLimiter::print_log_usage(const std::string& msg) { } else { detail += "\n" + log_usage(); } - detail += "\n" + boost::stacktrace::to_string(boost::stacktrace::stacktrace()); + // TODO: memory leak by calling `boost::stacktrace` in mem hook + // detail += "\n" + boost::stacktrace::to_string(boost::stacktrace::stacktrace()); LOG(WARNING) << detail; _print_log_usage = false; }