diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-10-31 16:00:13 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-10-31 23:08:11 +0100 |
commit | 811aa36ab6ee4da8daca386f8c3c338a720a4f0d (patch) | |
tree | 2360a164e7d60767f82029973dbcff9c00ab101b /src/shared | |
parent | coredump: move to _cleanup_ for destroying iovw object (diff) | |
download | systemd-811aa36ab6ee4da8daca386f8c3c338a720a4f0d.tar.xz systemd-811aa36ab6ee4da8daca386f8c3c338a720a4f0d.zip |
iovw: add simpler iovw_done() destructor
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/journal-importer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/journal-importer.c b/src/shared/journal-importer.c index 4dc0b8f662..9264638303 100644 --- a/src/shared/journal-importer.c +++ b/src/shared/journal-importer.c @@ -33,7 +33,7 @@ void journal_importer_cleanup(JournalImporter *imp) { free(imp->name); free(imp->buf); - iovw_free_contents(&imp->iovw, false); + iovw_done(&imp->iovw); } static char* realloc_buffer(JournalImporter *imp, size_t size) { @@ -452,7 +452,7 @@ void journal_importer_drop_iovw(JournalImporter *imp) { /* This function drops processed data that along with the iovw that points at it */ - iovw_free_contents(&imp->iovw, false); + iovw_done(&imp->iovw); /* possibly reset buffer position */ remain = imp->filled - imp->offset; |