diff options
author | Daniel Mack <github@zonque.org> | 2015-09-10 13:46:14 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-09-10 13:46:14 +0200 |
commit | f33be3119806f96898dda6ade492fbdcdf8f79b8 (patch) | |
tree | 3c470fb770c5a19f848df0487f01af89b0aa6bea /src/core/swap.c | |
parent | 89921f6ed085d77225204e160ce2cee99ed0c6fa (diff) | |
parent | 525d3cc746a037e8cc6b2e0ebaaf76a51856fa6b (diff) |
Merge pull request #1226 from poettering/coccinelle-fixes3
Third round of Coccinelle fixes
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) { |