mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-04 20:51:33 +00:00
Fix memory leak in stdout journal streams
Just as 'identifier' is strdup-ed and freed, we need to do the same for unit_id.
This commit is contained in:
@@ -340,6 +340,7 @@ void stdout_stream_free(StdoutStream *s) {
|
||||
#endif
|
||||
|
||||
free(s->identifier);
|
||||
free(s->unit_id);
|
||||
free(s);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user