From e3915b66b7e8e6b577af40b7f14dd30ea170798c Mon Sep 17 00:00:00 2001 From: David FORT Date: Fri, 30 Oct 2015 20:22:25 +0100 Subject: [PATCH] Fix the env var leak --- winpr/libwinpr/utils/wlog/JournaldAppender.c | 1 + 1 file changed, 1 insertion(+) diff --git a/winpr/libwinpr/utils/wlog/JournaldAppender.c b/winpr/libwinpr/utils/wlog/JournaldAppender.c index dfea43984..797535790 100644 --- a/winpr/libwinpr/utils/wlog/JournaldAppender.c +++ b/winpr/libwinpr/utils/wlog/JournaldAppender.c @@ -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: