Skip to content

Commit 794da5a

Browse files
daandemeyeryuwata
authored andcommitted
portable: Fix memory leak in maybe_enable_disable()
Fixes systemd#23481
1 parent 40bc68c commit 794da5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/portable/portablectl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,9 @@ static int maybe_enable_disable(sd_bus *bus, const char *path, bool enable) {
579579
if (r < 0)
580580
return bus_log_parse_error(r);
581581
}
582+
582583
(void) bus_deserialize_and_dump_unit_file_changes(reply, arg_quiet, &changes, &n_changes);
584+
unit_file_changes_free(changes, n_changes);
583585

584586
return 0;
585587
}

0 commit comments

Comments
 (0)