提交 f8c466f4 编写于 作者: X xulongteng

fix log memory bug

Change-Id: I9e7dd476f00e59a248a15f94eaa13ccc6034c115
上级 97c1011e
......@@ -143,7 +143,7 @@ int main(int argc, char** argv) {
std::string filename(argv[0]);
filename = filename.substr(filename.find_last_of('/') + 1);
settings.log_file = (std::string("./log/") + filename + ".log").c_str();
settings.log_file = strdup((std::string("./log/") + filename + ".log").c_str());
settings.delete_old = logging::DELETE_OLD_LOG_FILE;
logging::InitLogging(settings);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册