diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2022-05-23 15:32:42 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-05-24 03:55:09 +0200 |
commit | 794da5a1a579226793fcb016cdf43656d7e966f4 (patch) | |
tree | e08f327647764afea84a19f22c2944aad049db1b /src | |
parent | Merge pull request #23475 from nabijaczleweli/certified-lint.1-moment (diff) | |
download | systemd-794da5a1a579226793fcb016cdf43656d7e966f4.tar.xz systemd-794da5a1a579226793fcb016cdf43656d7e966f4.zip |
portable: Fix memory leak in maybe_enable_disable()
Fixes #23481
Diffstat (limited to 'src')
-rw-r--r-- | src/portable/portablectl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/portable/portablectl.c b/src/portable/portablectl.c index 9fb1cdffec..0fc3a64d71 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; } |