1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-10 05:18:17 +03:00

portable: Fix memory leak in maybe_enable_disable()

Fixes #23481
This commit is contained in:
Daan De Meyer 2022-05-23 15:32:42 +02:00 committed by Yu Watanabe
parent 40bc68cf21
commit 794da5a1a5

View File

@ -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;
}