svn commit: r289990 - stable/9/usr.sbin/makefs

Garrett Cooper ngie at FreeBSD.org
Mon Oct 26 03:55:14 UTC 2015


Author: ngie
Date: Mon Oct 26 03:55:13 2015
New Revision: 289990
URL: https://svnweb.freebsd.org/changeset/base/289990

Log:
  MFstable/10 r289989:
  
  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/9/usr.sbin/makefs/cd9660.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/usr.sbin/   (props changed)
  stable/9/usr.sbin/makefs/   (props changed)

Modified: stable/9/usr.sbin/makefs/cd9660.c
==============================================================================
--- stable/9/usr.sbin/makefs/cd9660.c	Mon Oct 26 03:53:48 2015	(r289989)
+++ stable/9/usr.sbin/makefs/cd9660.c	Mon Oct 26 03:55:13 2015	(r289990)
@@ -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-9 mailing list