fix mem leak in log_filter

master
Andre Puschmann 7 years ago
parent ccfb9314bc
commit 4222c6b9a0

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

Loading…
Cancel
Save