diff --git a/src/basic/journal-importer.c b/src/basic/journal-importer.c index 66119d2de14..7d72effdea9 100644 --- a/src/basic/journal-importer.c +++ b/src/basic/journal-importer.c @@ -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); } diff --git a/src/journal-remote/journal-remote-parse.c b/src/journal-remote/journal-remote-parse.c index 79afe6604c0..d61d1c18f68 100644 --- a/src/journal-remote/journal-remote-parse.c +++ b/src/journal-remote/journal-remote-parse.c @@ -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) {