systemctl: fix memleak caused by wrong cleanup func
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 12 Oct 2019 15:54:34 +0000 (00:54 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 13 Oct 2019 16:18:41 +0000 (01:18 +0900)
src/systemctl/systemctl.c

index 98a71c4..738b9af 100644 (file)
@@ -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;