mirror of https://github.com/PentHertz/srsLTE.git
fix mem leak in log_filter
This commit is contained in:
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…
Reference in New Issue