mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 09:56:51 +03:00
journal-remote: fix memleak of the name of the remote source
This commit is contained in:
parent
731e10f3c5
commit
2ddb70d26f
@ -69,6 +69,7 @@ void journal_importer_cleanup(JournalImporter *imp) {
|
||||
safe_close(imp->fd);
|
||||
}
|
||||
|
||||
free(imp->name);
|
||||
free(imp->buf);
|
||||
iovw_free_contents(&imp->iovw);
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ void source_free(RemoteSource *source) {
|
||||
|
||||
/**
|
||||
* Initialize zero-filled source with given values. On success, takes
|
||||
* ownerhship of fd and writer, otherwise does not touch them.
|
||||
* ownership of fd, name, and writer, otherwise does not touch them.
|
||||
*/
|
||||
RemoteSource* source_new(int fd, bool passive_fd, char *name, Writer *writer) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user