From 50fccba1ab7097bcb69048bbe929ab739be3fc1e Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 21 Aug 2013 16:07:51 +0200 Subject: misc: use libmnt_table reference counter Signed-off-by: Karel Zak --- sys-utils/umount.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys-utils/umount.c') diff --git a/sys-utils/umount.c b/sys-utils/umount.c index c3b8187ce..b8e4b7fe6 100644 --- a/sys-utils/umount.c +++ b/sys-utils/umount.c @@ -317,7 +317,7 @@ static struct libmnt_table *new_mountinfo(struct libmnt_context *cxt) if (mnt_table_parse_file(tb, _PATH_PROC_MOUNTINFO)) { warn(_("failed to parse %s"), _PATH_PROC_MOUNTINFO); - mnt_free_table(tb); + mnt_unref_table(tb); tb = NULL; } @@ -400,7 +400,7 @@ static int umount_recursive(struct libmnt_context *cxt, const char *spec) _("%s: not found"), spec); } - mnt_free_table(tb); + mnt_unref_table(tb); return rc; } @@ -459,7 +459,7 @@ static int umount_alltargets(struct libmnt_context *cxt, const char *spec, int r } mnt_free_iter(itr); - mnt_free_table(tb); + mnt_unref_table(tb); return rc; } -- cgit v1.2.3-55-g7522