From 946dc7c635f050129896d1515c08a81504af2421 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 10 Aug 2023 12:13:07 +0200 Subject: [PATCH] coredump: fix error path We must go through finish, to undo the destruction of the final elements of the iovw properly. --- src/coredump/coredump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c index 08be963b8a2..9a2066858d3 100644 --- a/src/coredump/coredump.c +++ b/src/coredump/coredump.c @@ -1468,7 +1468,7 @@ static int process_backtrace(int argc, char *argv[]) { r = iovw_put_string_field(iovw, "MESSAGE=", message); if (r < 0) - return r; + goto finish; } else { /* The imported iovecs are not supposed to be freed by us so let's store * them at the end of the array so we can skip them while freeing the -- 2.47.3