From 794da5a1a579226793fcb016cdf43656d7e966f4 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 23 May 2022 15:32:42 +0200 Subject: [PATCH] portable: Fix memory leak in maybe_enable_disable() Fixes #23481 --- src/portable/portablectl.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.47.3