From: Yu Watanabe Date: Sat, 26 May 2018 11:49:43 +0000 (+0900) Subject: portable: fix memleak X-Git-Tag: v239~205 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5a935b018a00369ba38bed360cae55558556d25;p=thirdparty%2Fsystemd.git portable: fix memleak Closes #9086. --- diff --git a/src/portable/portabled-image-bus.c b/src/portable/portabled-image-bus.c index 7a13ea235a3..1dc6b77b3ba 100644 --- a/src/portable/portabled-image-bus.c +++ b/src/portable/portabled-image-bus.c @@ -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);