summaryrefslogtreecommitdiffstats
path: root/sys-utils/swapon-common.c
diff options
context:
space:
mode:
authorKarel Zak2013-08-21 16:07:51 +0200
committerKarel Zak2013-08-21 16:07:51 +0200
commit50fccba1ab7097bcb69048bbe929ab739be3fc1e (patch)
treea0682409c49b721e7dc9e3082fc92b909586f7c2 /sys-utils/swapon-common.c
parentlibmount: add reference counter to libmnt_table (diff)
downloadkernel-qcow2-util-linux-50fccba1ab7097bcb69048bbe929ab739be3fc1e.tar.gz
kernel-qcow2-util-linux-50fccba1ab7097bcb69048bbe929ab739be3fc1e.tar.xz
kernel-qcow2-util-linux-50fccba1ab7097bcb69048bbe929ab739be3fc1e.zip
misc: use libmnt_table reference counter
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/swapon-common.c')
-rw-r--r--sys-utils/swapon-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-utils/swapon-common.c b/sys-utils/swapon-common.c
index 5c95ef342..6dd7bacb1 100644
--- a/sys-utils/swapon-common.c
+++ b/sys-utils/swapon-common.c
@@ -41,8 +41,8 @@ struct libmnt_table *get_swaps(void)
void free_tables(void)
{
- mnt_free_table(swaps);
- mnt_free_table(fstab);
+ mnt_unref_table(swaps);
+ mnt_unref_table(fstab);
}
int match_swap(struct libmnt_fs *fs, void *data __attribute__((unused)))