portable: fix memleak

Closes #9086.
This commit is contained in:
Yu Watanabe 2018-05-26 20:49:43 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent 49805b3d81
commit c5a935b018
1 changed files with 2 additions and 3 deletions

View File

@ -216,12 +216,11 @@ int bus_image_common_attach(
Image *image,
sd_bus_error *error) {
_cleanup_free_ char **matches = NULL;
_cleanup_strv_free_ char **matches = NULL;
PortableChange *changes = NULL;
PortableFlags flags = 0;
const char *copy_mode;
const char *profile, *copy_mode;
size_t n_changes = 0;
const char *profile;
int runtime, r;
assert(message);