summaryrefslogtreecommitdiffstats
path: root/src/sysctl/sysctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-20 11:29:02 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-11-20 16:48:21 +0100
commit07a91a45c719b40b3ef85f66f7ab90846b79f091 (patch)
tree9660f2193b26f2e5d6c6ea47df00eae463743c53 /src/sysctl/sysctl.c
parentsysctl: port to use DEFINE_MAIN_FUNCTION() (diff)
downloadsystemd-07a91a45c719b40b3ef85f66f7ab90846b79f091.tar.xz
systemd-07a91a45c719b40b3ef85f66f7ab90846b79f091.zip
sysctl: use _cleanup_ in one more occasion
Diffstat (limited to '')
-rw-r--r--src/sysctl/sysctl.c3
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;