From 25609ee1be4d13d00963873ee80c05f7748224be Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 30 Jan 2012 23:44:31 +0100 Subject: mount: (new) fix resource leak [coverity scan] well, this is free-before-exit, but let's use mount(8) as test application for libmount and keep it without leaks. Signed-off-by: Karel Zak --- sys-utils/mount.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys-utils/mount.c') diff --git a/sys-utils/mount.c b/sys-utils/mount.c index e4b3e4f7c..15510e013 100644 --- a/sys-utils/mount.c +++ b/sys-utils/mount.c @@ -222,6 +222,7 @@ static int mount_all(struct libmnt_context *cxt) rc = nchildren == nerrs ? MOUNT_EX_FAIL : MOUNT_EX_SOMEOK; } + mnt_free_iter(itr); return rc; } -- cgit v1.2.3-55-g7522