summaryrefslogtreecommitdiff
path: root/lib/libfuse
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-24 17:02:38 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-24 17:02:38 +0000
commitbf088a4fdffe17767869bd751dff846f9a944291 (patch)
treefe9b482ad5267aa1f442a64aba7d29c6c1488aaf /lib/libfuse
parent0e166605c67ffad93206aca530529c1a9ace62ac (diff)
remove NULL-check before free()
Diffstat (limited to 'lib/libfuse')
-rw-r--r--lib/libfuse/fuse.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libfuse/fuse.c b/lib/libfuse/fuse.c
index 20a1cdd029e..0f58b3049e0 100644
--- a/lib/libfuse/fuse.c
+++ b/lib/libfuse/fuse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fuse.c,v 1.26 2015/07/07 13:56:45 ajacoutot Exp $ */
+/* $OpenBSD: fuse.c,v 1.27 2015/12/24 17:02:37 mmcc Exp $ */
/*
* Copyright (c) 2013 Sylvestre Gallon <ccna.syl@gmail.com>
*
@@ -478,8 +478,7 @@ fuse_setup(int argc, char **argv, const struct fuse_operations *ops,
return (fuse);
err:
- if (*mp)
- free(*mp);
+ free(*mp);
return (NULL);
}