diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-09 23:12:07 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-09 23:12:07 +0200 |
commit | 525d3cc746a037e8cc6b2e0ebaaf76a51856fa6b (patch) | |
tree | c96ffcfb5a7bf46fdbbd4ea6bf801bc3b3cf7acd /src/core/execute.c | |
parent | 6796073e330f49923c5134652ee085e29fc88002 (diff) |
tree-wide: take benefit of the fact that hashmap_free() returns NULL
And set_free() too.
Another Coccinelle patch.
Diffstat (limited to 'src/core/execute.c')
-rw-r--r-- | src/core/execute.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/core/execute.c b/src/core/execute.c index 86c2a80673..d1acda6682 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -2025,14 +2025,9 @@ void exec_context_done(ExecContext *c) { c->selinux_context = mfree(c->selinux_context); c->apparmor_profile = mfree(c->apparmor_profile); - set_free(c->syscall_filter); - c->syscall_filter = NULL; - - set_free(c->syscall_archs); - c->syscall_archs = NULL; - - set_free(c->address_families); - c->address_families = NULL; + c->syscall_filter = set_free(c->syscall_filter); + c->syscall_archs = set_free(c->syscall_archs); + c->address_families = set_free(c->address_families); c->runtime_directory = strv_free(c->runtime_directory); |