From: Lennart Poettering Date: Thu, 10 Aug 2023 10:13:07 +0000 (+0200) Subject: coredump: fix error path X-Git-Tag: v255-rc1~756^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=946dc7c635f050129896d1515c08a81504af2421;p=thirdparty%2Fsystemd.git coredump: fix error path We must go through finish, to undo the destruction of the final elements of the iovw properly. --- 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