summaryrefslogtreecommitdiffstats
path: root/sys-utils/swapon.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/swapon.c')
-rw-r--r--sys-utils/swapon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c
index 4b4b7160c..cc9bdbc83 100644
--- a/sys-utils/swapon.c
+++ b/sys-utils/swapon.c
@@ -816,7 +816,7 @@ int main(int argc, char *argv[])
status |= do_swapon(*argv++, priority, discard, !CANONIC);
free_tables();
- mnt_free_cache(mntcache);
+ mnt_unref_cache(mntcache);
return status;
}