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/swap.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/swap.c')
-rw-r--r-- | src/core/swap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/swap.c b/src/core/swap.c index 311ce7ee04..bef457069f 100644 --- a/src/core/swap.c +++ b/src/core/swap.c @@ -1254,8 +1254,7 @@ static void swap_shutdown(Manager *m) { m->proc_swaps = safe_fclose(m->proc_swaps); - hashmap_free(m->swaps_by_devnode); - m->swaps_by_devnode = NULL; + m->swaps_by_devnode = hashmap_free(m->swaps_by_devnode); } static int swap_enumerate(Manager *m) { |