summaryrefslogtreecommitdiffstats
path: root/sys-utils/mountpoint.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/mountpoint.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/mountpoint.c')
-rw-r--r--sys-utils/mountpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/mountpoint.c b/sys-utils/mountpoint.c
index 4f6dbbd3f..cba5f0125 100644
--- a/sys-utils/mountpoint.c
+++ b/sys-utils/mountpoint.c
@@ -91,7 +91,7 @@ static int dir_to_device(const char *spec, dev_t *dev)
rc = 0;
}
- mnt_free_table(tb);
+ mnt_unref_table(tb);
return rc;
}