mirror of https://github.com/PentHertz/srsLTE.git
Fixed memory leak in logger_stdout
This commit is contained in:
parent
efd916bb62
commit
f8303acba7
|
@ -42,7 +42,10 @@ namespace srslte {
|
|||
{
|
||||
public:
|
||||
void log(std::string *msg) {
|
||||
fprintf(stdout, "%s", msg->c_str());
|
||||
if (msg) {
|
||||
fprintf(stdout, "%s", msg->c_str());
|
||||
delete msg;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue