[systemd-commits] src/journal

David Strauss straussd at kemper.freedesktop.org
Sun Dec 8 13:18:01 PST 2013


 src/journal/journald-stream.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit f92ae4968f070ef0ada61ba7cd585794fac404dd
Author: Dan McGee <dan at archlinux.org>
Date:   Sun Dec 8 14:33:45 2013 -0600

    Fix memory leak in stdout journal streams
    
    Just as 'identifier' is strdup-ed and freed, we need to do the same for
    unit_id.

diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c
index 9ca26e2..091f59d 100644
--- a/src/journal/journald-stream.c
+++ b/src/journal/journald-stream.c
@@ -340,6 +340,7 @@ void stdout_stream_free(StdoutStream *s) {
 #endif
 
         free(s->identifier);
+        free(s->unit_id);
         free(s);
 }
 



More information about the systemd-commits mailing list