summaryrefslogtreecommitdiffstats
path: root/sys-utils/swapoff.c
diff options
context:
space:
mode:
authorKarel Zak2013-08-21 14:38:38 +0200
committerKarel Zak2013-08-21 14:38:38 +0200
commit6195f9e6fab612694ff97e66f9b276b913aa2d24 (patch)
treee20e772ab6cf20504268c1e776f3cfe6913fd21f /sys-utils/swapoff.c
parentlibmount: add reference counting to libmnt_cache (diff)
downloadkernel-qcow2-util-linux-6195f9e6fab612694ff97e66f9b276b913aa2d24.tar.gz
kernel-qcow2-util-linux-6195f9e6fab612694ff97e66f9b276b913aa2d24.tar.xz
kernel-qcow2-util-linux-6195f9e6fab612694ff97e66f9b276b913aa2d24.zip
misc: use libmnt_cache reference counting
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/swapoff.c')
-rw-r--r--sys-utils/swapoff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/swapoff.c b/sys-utils/swapoff.c
index 0bd85ac9c..182ce9592 100644
--- a/sys-utils/swapoff.c
+++ b/sys-utils/swapoff.c
@@ -190,7 +190,7 @@ int main(int argc, char *argv[])
status |= swapoff_all();
free_tables();
- mnt_free_cache(mntcache);
+ mnt_unref_cache(mntcache);
return status;
}