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