From: Dan McGee Date: Sun, 8 Dec 2013 20:33:45 +0000 (-0600) Subject: Fix memory leak in stdout journal streams X-Git-Tag: submit/kdbus-integration/20140207.094352~755 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f92ae4968f070ef0ada61ba7cd585794fac404dd;p=platform%2Fupstream%2Fsystemd.git 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); }