summaryrefslogtreecommitdiffstats
path: root/libmount/src/context_mount.c
diff options
context:
space:
mode:
authorKarel Zak2012-01-17 17:16:57 +0100
committerKarel Zak2012-01-17 17:16:57 +0100
commit0208ae2e0c9f212914f4400078918a6c5df2e2d4 (patch)
tree9c918543fdeae2e771564e9fc517910cf4b28f84 /libmount/src/context_mount.c
parentbuild-sys: use $(MAKE) for checksmatch (diff)
downloadkernel-qcow2-util-linux-0208ae2e0c9f212914f4400078918a6c5df2e2d4.tar.gz
kernel-qcow2-util-linux-0208ae2e0c9f212914f4400078918a6c5df2e2d4.tar.xz
kernel-qcow2-util-linux-0208ae2e0c9f212914f4400078918a6c5df2e2d4.zip
libmount: fix bugs detected by [smatch scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context_mount.c')
-rw-r--r--libmount/src/context_mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c
index 9d5933c56..17bbd4287 100644
--- a/libmount/src/context_mount.c
+++ b/libmount/src/context_mount.c
@@ -243,7 +243,7 @@ static int evaluate_permissions(struct libmnt_context *cxt)
cxt->user_mountflags |= MNT_MS_USER;
- if (!cache && xsrc)
+ if (!cache)
free(xsrc);
}