summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-12-08 14:33:45 -0600
committerDavid Strauss <david@davidstrauss.net>2013-12-08 13:15:59 -0800
commitf92ae4968f070ef0ada61ba7cd585794fac404dd (patch)
tree14e90997e56cede46753127a81b86565743db20b /src
parente13bb5d2b133f9ae51c0a2d20aa51071c780e9ae (diff)
Fix memory leak in stdout journal streams
Just as 'identifier' is strdup-ed and freed, we need to do the same for unit_id.
Diffstat (limited to 'src')
-rw-r--r--src/journal/journald-stream.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c
index 9ca26e26d6..091f59de17 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);
}