]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Don't check if `val` is NULL before calling free; free(3) already
authorngie <ngie@FreeBSD.org>
Mon, 19 Oct 2015 18:45:14 +0000 (18:45 +0000)
committerngie <ngie@FreeBSD.org>
Mon, 19 Oct 2015 18:45:14 +0000 (18:45 +0000)
handles this

MFC after: 1 week
PR: 203649
Submitted by: Thomas Schmitt <scdbackup@gmx.net>
Coverity CID: 1305659
Sponsored by: EMC / Isilon Storage Division

usr.sbin/makefs/cd9660.c

index f0e2f38671218333178a2debb19ea046c29861fb..ea4ed4446d49ca4b07fd1fb9bd00cf8c53cf7ab9 100644 (file)
@@ -428,8 +428,7 @@ cd9660_parse_opts(const char *option, fsinfo_t *fsopts)
                        rv = set_option(cd9660_options, var, val);
        }
 
-       if (var)
-               free(var);
+       free(var);
        return (rv);
 }