]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootspec: fix memleak caused by setting invalid cleanup function 12156/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 31 Mar 2019 14:31:29 +0000 (23:31 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 31 Mar 2019 14:31:29 +0000 (23:31 +0900)
src/shared/bootspec.c

index 6f5f002430f87a3be3b788a2982248d43ee433e6..9a0dc2915337194b4713096781c45b90d7b4fc0d 100644 (file)
@@ -736,7 +736,7 @@ int boot_entries_augment_from_loader(BootConfig *config, bool only_auto) {
                 "auto-reboot-to-firmware-setup", "Reboot Into Firmware Interface",
         };
 
-        _cleanup_free_ char **found_by_loader = NULL;
+        _cleanup_strv_free_ char **found_by_loader = NULL;
         size_t n_allocated;
         char **i;
         int r;