From: Yu Watanabe Date: Sat, 12 Oct 2019 15:54:34 +0000 (+0900) Subject: systemctl: fix memleak caused by wrong cleanup func X-Git-Tag: v244-rc1~202^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13765%2Fhead;p=thirdparty%2Fsystemd.git systemctl: fix memleak caused by wrong cleanup func --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 98a71c44601..738b9af5363 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -7977,7 +7977,7 @@ static void help_states(void) { static int help_boot_loader_entry(void) { _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL; - _cleanup_free_ char **l = NULL; + _cleanup_strv_free_ char **l = NULL; sd_bus *bus; char **i; int r;