mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 22:45:52 +00:00
Fix a small leak.
This commit is contained in:
@@ -166,9 +166,9 @@ void Log::setLogFile(boost::filesystem::path path)
|
||||
if (outStream != NULL)
|
||||
delete outStream;
|
||||
outStream = newStream;
|
||||
if (outStream)
|
||||
Log(lsINFO) << "Starting up";
|
||||
|
||||
if (pathToLog != NULL)
|
||||
delete pathToLog;
|
||||
pathToLog = new boost::filesystem::path(path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user