summaryrefslogtreecommitdiffstats
path: root/usr.sbin/makefs
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-10-19 18:45:14 +0000
committerngie <ngie@FreeBSD.org>2015-10-19 18:45:14 +0000
commitc5e3d7dd4d04f5096a7fea86493825fcff7d4a27 (patch)
treed2293399238fa94c9aba83f70de7581cfb457aba /usr.sbin/makefs
parent02a1e0f62182db946e4a9e8254db6971411ba20d (diff)
downloadFreeBSD-src-c5e3d7dd4d04f5096a7fea86493825fcff7d4a27.zip
FreeBSD-src-c5e3d7dd4d04f5096a7fea86493825fcff7d4a27.tar.gz
Don't check if `val` is NULL before calling free; free(3) already
handles this MFC after: 1 week PR: 203649 Submitted by: Thomas Schmitt <scdbackup@gmx.net> Coverity CID: 1305659 Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'usr.sbin/makefs')
-rw-r--r--usr.sbin/makefs/cd9660.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/makefs/cd9660.c b/usr.sbin/makefs/cd9660.c
index f0e2f38..ea4ed44 100644
--- a/usr.sbin/makefs/cd9660.c
+++ b/usr.sbin/makefs/cd9660.c
@@ -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);
}
OpenPOWER on IntegriCloud