mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 21:51:37 +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. (cherry picked from commitf92ae4968f) (cherry picked from commita345f4c7f5)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
f2caf835d3
commit
4d7bbe40f3
@@ -339,6 +339,7 @@ void stdout_stream_free(StdoutStream *s) {
|
||||
#endif
|
||||
|
||||
free(s->identifier);
|
||||
free(s->unit_id);
|
||||
free(s);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user