forked from Telodendria/Telodendria
Fix leak of StreamStdout() when logging to a file.
This commit is contained in:
parent
a9da9fbca7
commit
c6f4a4a546
1 changed files with 1 additions and 0 deletions
|
@ -252,6 +252,7 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
Log(LOG_INFO, "Logging to the log file. Check there for all future messages.");
|
Log(LOG_INFO, "Logging to the log file. Check there for all future messages.");
|
||||||
LogConfigOutputSet(LogConfigGlobal(), logFile);
|
LogConfigOutputSet(LogConfigGlobal(), logFile);
|
||||||
|
StreamClose(StreamStdout());
|
||||||
}
|
}
|
||||||
else if (tConfig->flags & CONFIG_LOG_STDOUT)
|
else if (tConfig->flags & CONFIG_LOG_STDOUT)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue