mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09: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