svn commit: r289989 - stable/10/usr.sbin/makefs
Garrett Cooper
ngie at FreeBSD.org
Mon Oct 26 03:53:50 UTC 2015
Author: ngie
Date: Mon Oct 26 03:53:48 2015
New Revision: 289989
URL: https://svnweb.freebsd.org/changeset/base/289989
Log:
MFC r289601:
Don't check if `val` is NULL before calling free; free(3) already
handles this
PR: 203649
Submitted by: Thomas Schmitt <scdbackup at gmx.net>
Coverity CID: 1305659
Sponsored by: EMC / Isilon Storage Division
Modified:
stable/10/usr.sbin/makefs/cd9660.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/usr.sbin/makefs/cd9660.c
==============================================================================
--- stable/10/usr.sbin/makefs/cd9660.c Mon Oct 26 03:48:38 2015 (r289988)
+++ stable/10/usr.sbin/makefs/cd9660.c Mon Oct 26 03:53:48 2015 (r289989)
@@ -428,8 +428,7 @@ cd9660_parse_opts(const char *option, fs
rv = set_option(cd9660_options, var, val);
}
- if (var)
- free(var);
+ free(var);
return (rv);
}
More information about the svn-src-stable-10
mailing list