From: Daan De Meyer Date: Mon, 23 May 2022 13:32:42 +0000 (+0200) Subject: portable: Fix memory leak in maybe_enable_disable() X-Git-Tag: v252-rc1~934 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=794da5a;p=thirdparty%2Fsystemd.git portable: Fix memory leak in maybe_enable_disable() Fixes #23481 --- diff --git a/src/portable/portablectl.c b/src/portable/portablectl.c index 9fb1cdffece..0fc3a64d71c 100644 --- a/src/portable/portablectl.c +++ b/src/portable/portablectl.c @@ -579,7 +579,9 @@ static int maybe_enable_disable(sd_bus *bus, const char *path, bool enable) { if (r < 0) return bus_log_parse_error(r); } + (void) bus_deserialize_and_dump_unit_file_changes(reply, arg_quiet, &changes, &n_changes); + unit_file_changes_free(changes, n_changes); return 0; }