diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-08-10 12:13:07 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-08-10 12:13:09 +0200 |
commit | 946dc7c635f050129896d1515c08a81504af2421 (patch) | |
tree | 3d90e68d15c2b17a7e0176a6f907fde1df6a53fb /src/coredump | |
parent | coredump: rename gather_pid_metadata() → gather_pid_metadata_from_procfs() (diff) | |
download | systemd-946dc7c635f050129896d1515c08a81504af2421.tar.xz systemd-946dc7c635f050129896d1515c08a81504af2421.zip |
coredump: fix error path
We must go through finish, to undo the destruction of the final elements
of the iovw properly.
Diffstat (limited to 'src/coredump')
-rw-r--r-- | src/coredump/coredump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c index 08be963b8a..9a2066858d 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 |