From: Yu Watanabe Date: Sun, 31 Mar 2019 14:31:29 +0000 (+0900) Subject: bootspec: fix memleak caused by setting invalid cleanup function X-Git-Tag: v242-rc1~35^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12156%2Fhead;p=thirdparty%2Fsystemd.git bootspec: fix memleak caused by setting invalid cleanup function --- diff --git a/src/shared/bootspec.c b/src/shared/bootspec.c index 6f5f002430f..9a0dc291533 100644 --- a/src/shared/bootspec.c +++ b/src/shared/bootspec.c @@ -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;