diff options
Diffstat (limited to 'src/core/swap.c')
-rw-r--r-- | src/core/swap.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/swap.c b/src/core/swap.c index a26bc58cfc..311ce7ee04 100644 --- a/src/core/swap.c +++ b/src/core/swap.c @@ -1252,10 +1252,7 @@ static void swap_shutdown(Manager *m) { m->swap_event_source = sd_event_source_unref(m->swap_event_source); - if (m->proc_swaps) { - fclose(m->proc_swaps); - m->proc_swaps = NULL; - } + m->proc_swaps = safe_fclose(m->proc_swaps); hashmap_free(m->swaps_by_devnode); m->swaps_by_devnode = NULL; |