summaryrefslogtreecommitdiff
path: root/misc-utils
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2013-08-21 14:38:38 +0200
committerKarel Zak <kzak@redhat.com>2013-08-21 14:38:38 +0200
commit6195f9e6fab612694ff97e66f9b276b913aa2d24 (patch)
treee20e772ab6cf20504268c1e776f3cfe6913fd21f /misc-utils
parent0105691d541ea2be766b681b437f3082e78dd664 (diff)
downloadutil-linux-6195f9e6fab612694ff97e66f9b276b913aa2d24.tar.gz
misc: use libmnt_cache reference counting
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils')
-rw-r--r--misc-utils/findmnt.c2
-rw-r--r--misc-utils/lsblk.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/misc-utils/findmnt.c b/misc-utils/findmnt.c
index 8ccceda9..aba7075d 100644
--- a/misc-utils/findmnt.c
+++ b/misc-utils/findmnt.c
@@ -1497,7 +1497,7 @@ leave:
tt_free_table(tt);
mnt_free_table(tb);
- mnt_free_cache(cache);
+ mnt_unref_cache(cache);
free(tabfiles);
#ifdef HAVE_LIBUDEV
udev_unref(udev);
diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c
index 4f435058..b5cdf6c4 100644
--- a/misc-utils/lsblk.c
+++ b/misc-utils/lsblk.c
@@ -1606,7 +1606,7 @@ leave:
tt_free_table(lsblk->tt);
mnt_free_table(mtab);
mnt_free_table(swaps);
- mnt_free_cache(mntcache);
+ mnt_unref_cache(mntcache);
#ifdef HAVE_LIBUDEV
udev_unref(udev);
#endif