summaryrefslogtreecommitdiffstats
path: root/sys-utils/umount.c
diff options
context:
space:
mode:
authorKarel Zak2012-01-30 23:49:00 +0100
committerKarel Zak2012-01-30 23:49:23 +0100
commit0f2d6476110708f13e6feaab798c72cf8ae91312 (patch)
tree98e23261cbe4e93d2391af9b5e2731a09eedfaa2 /sys-utils/umount.c
parentfindmnt: fix resource leak [coverity scan] (diff)
downloadkernel-qcow2-util-linux-0f2d6476110708f13e6feaab798c72cf8ae91312.tar.gz
kernel-qcow2-util-linux-0f2d6476110708f13e6feaab798c72cf8ae91312.tar.xz
kernel-qcow2-util-linux-0f2d6476110708f13e6feaab798c72cf8ae91312.zip
umount: (new) fix resource leak [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/umount.c')
-rw-r--r--sys-utils/umount.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys-utils/umount.c b/sys-utils/umount.c
index 20a2c1af7..b3c2c909a 100644
--- a/sys-utils/umount.c
+++ b/sys-utils/umount.c
@@ -255,6 +255,7 @@ static int umount_all(struct libmnt_context *cxt)
}
}
+ mnt_free_iter(itr);
return rc;
}