diff options
Diffstat (limited to '')
-rw-r--r-- | src/sysctl/sysctl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c index d0d152edfd..fbc96c70e1 100644 --- a/src/sysctl/sysctl.c +++ b/src/sysctl/sysctl.c @@ -263,7 +263,7 @@ static int parse_argv(int argc, char *argv[]) { } static int run(int argc, char *argv[]) { - OrderedHashmap *sysctl_options = NULL; + _cleanup_(ordered_hashmap_free_free_freep) OrderedHashmap *sysctl_options = NULL; int r = 0, k; r = parse_argv(argc, argv); @@ -321,7 +321,6 @@ static int run(int argc, char *argv[]) { finish: pager_close(); - ordered_hashmap_free_free_free(sysctl_options); strv_free(arg_prefixes); return r; |