]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
portable: fix memleak
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 26 May 2018 11:49:43 +0000 (20:49 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 26 May 2018 14:57:02 +0000 (16:57 +0200)
Closes #9086.

src/portable/portabled-image-bus.c

index 7a13ea235a319dc29d23f26080ca464bf246d9fe..1dc6b77b3ba49a34ea4771cd5d573031c3e83381 100644 (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);