Fix the env var leak

This commit is contained in:
David FORT 2015-10-30 20:22:25 +01:00
parent 89156e53b7
commit e3915b66b7

View File

@ -151,6 +151,7 @@ wLogJournaldAppender* WLog_JournaldAppender_New(wLog* log)
if (!appender->stream)
goto error_stream_open;
setbuffer(appender->stream, NULL, 0);
free(env);
return appender;
error_stream_open: