fix mem leak in log_filter

This commit is contained in:
Andre Puschmann 2018-02-11 16:38:04 +01:00
parent ccfb9314bc
commit 4222c6b9a0
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
}