From c5a935b018a00369ba38bed360cae55558556d25 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 26 May 2018 20:49:43 +0900 Subject: [PATCH] portable: fix memleak Closes #9086. --- src/portable/portabled-image-bus.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); -- 2.47.3