diff options
author | Karel Zak | 2012-01-30 23:44:31 +0100 |
---|---|---|
committer | Karel Zak | 2012-01-30 23:49:15 +0100 |
commit | 25609ee1be4d13d00963873ee80c05f7748224be (patch) | |
tree | 098599e2903780a6eefd896cf104816346e9d230 /sys-utils/mount.c | |
parent | libmount: fix resource leak [coverity scan] (diff) | |
download | kernel-qcow2-util-linux-25609ee1be4d13d00963873ee80c05f7748224be.tar.gz kernel-qcow2-util-linux-25609ee1be4d13d00963873ee80c05f7748224be.tar.xz kernel-qcow2-util-linux-25609ee1be4d13d00963873ee80c05f7748224be.zip |
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 <kzak@redhat.com>
Diffstat (limited to 'sys-utils/mount.c')
-rw-r--r-- | sys-utils/mount.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |