From 4222c6b9a09426168769b260e7ea469d250284c3 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Sun, 11 Feb 2018 16:38:04 +0100 Subject: [PATCH] fix mem leak in log_filter --- lib/src/common/log_filter.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/common/log_filter.cc b/lib/src/common/log_filter.cc index b498d466c..4d80a8523 100644 --- a/lib/src/common/log_filter.cc +++ b/lib/src/common/log_filter.cc @@ -91,6 +91,7 @@ void log_filter::all_log(srslte::LOG_LEVEL_ENUM level, str_ptr s_ptr(new std::string(ss.str())); logger_h->log(s_ptr); + delete(s_ptr); } } @@ -131,6 +132,7 @@ void log_filter::all_log(srslte::LOG_LEVEL_ENUM level, } str_ptr s_ptr(new std::string(ss.str())); logger_h->log(s_ptr); + delete s_ptr; } }