Don't log anything at the end of main; user may have redirected and closeed stream.

This would cause a segfault.
This commit is contained in:
Jordan Bancino 2023-05-24 23:32:53 +00:00
parent 061d9df739
commit 0c3ccb2c99

View file

@ -148,8 +148,6 @@ finish:
HashMapFree(args.env);
}
Log(LOG_DEBUG, "Exitting with code: %d", ret);
LogConfigFree(LogConfigGlobal());
StreamClose(StreamStdout());