diff options
author | 2015-12-24 17:02:37 +0000 | |
---|---|---|
committer | 2015-12-24 17:02:37 +0000 | |
commit | 055cb05449f99d7f513e31fa5981cdb8c124ac72 (patch) | |
tree | b9bf5e02f5cfb7f39ffc8802204ceef664e77cb8 | |
parent | Function prototypes and a little bit of KNF. (diff) | |
download | wireguard-openbsd-055cb05449f99d7f513e31fa5981cdb8c124ac72.tar.xz wireguard-openbsd-055cb05449f99d7f513e31fa5981cdb8c124ac72.zip |
remove NULL-check before free()
-rw-r--r-- | lib/libfuse/fuse.c | 5 |
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); } |