Fixed memory leak in logger_stdout

master
Ismael Gomez 7 years ago
parent efd916bb62
commit f8303acba7

@ -42,7 +42,10 @@ namespace srslte {
{ {
public: public:
void log(std::string *msg) { void log(std::string *msg) {
fprintf(stdout, "%s", msg->c_str()); if (msg) {
fprintf(stdout, "%s", msg->c_str());
delete msg;
}
} }
}; };

Loading…
Cancel
Save