daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
572a44
From ac67da03ebc56ab45b3fbb166fe961cb753d2777 Mon Sep 17 00:00:00 2001
572a44
From: Dan McGee <dan@archlinux.org>
572a44
Date: Sun, 8 Dec 2013 14:33:45 -0600
572a44
Subject: [PATCH] Fix memory leak in stdout journal streams
572a44
572a44
Just as 'identifier' is strdup-ed and freed, we need to do the same for
572a44
unit_id.
572a44
---
572a44
 src/journal/journald-stream.c | 1 +
572a44
 1 file changed, 1 insertion(+)
572a44
572a44
diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c
572a44
index 9c4efec..4080622 100644
572a44
--- a/src/journal/journald-stream.c
572a44
+++ b/src/journal/journald-stream.c
572a44
@@ -339,6 +339,7 @@ void stdout_stream_free(StdoutStream *s) {
572a44
 #endif
572a44
 
572a44
         free(s->identifier);
572a44
+        free(s->unit_id);
572a44
         free(s);
572a44
 }
572a44