summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-10-31 16:00:13 +0100
committerLennart Poettering <lennart@poettering.net>2024-10-31 23:08:11 +0100
commit811aa36ab6ee4da8daca386f8c3c338a720a4f0d (patch)
tree2360a164e7d60767f82029973dbcff9c00ab101b /src/shared
parentcoredump: move to _cleanup_ for destroying iovw object (diff)
downloadsystemd-811aa36ab6ee4da8daca386f8c3c338a720a4f0d.tar.xz
systemd-811aa36ab6ee4da8daca386f8c3c338a720a4f0d.zip
iovw: add simpler iovw_done() destructor
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/journal-importer.c4
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;