Fix memory leak in stdout journal streams

Just as 'identifier' is strdup-ed and freed, we need to do the same for
unit_id.

(cherry picked from commit f92ae4968f)
(cherry picked from commit a345f4c7f5)
This commit is contained in:
Dan McGee
2014-07-22 23:03:31 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent f2caf835d3
commit 4d7bbe40f3
+1
View File
@@ -339,6 +339,7 @@ void stdout_stream_free(StdoutStream *s) {
#endif
free(s->identifier);
free(s->unit_id);
free(s);
}