Fix leak of StreamStdout() when logging to a file.

This commit is contained in:
Jordan Bancino 2023-03-27 17:56:45 +00:00
parent a9da9fbca7
commit c6f4a4a546

View file

@ -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)
{ {