From: Dan McGee Date: Sun, 8 Dec 2013 20:33:45 +0000 (-0600) Subject: Fix memory leak in stdout journal streams X-Git-Tag: v209~1094 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=f92ae4968f070ef0ada61ba7cd585794fac404dd;hp=e13bb5d2b133f9ae51c0a2d20aa51071c780e9ae 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 9ca26e26d..091f59de1 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); }