Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Feb 2019 16:20:21 +0000 (UTC)
From:      "Rodney W. Grimes" <rgrimes@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r344159 - head/usr.sbin/bhyve
Message-ID:  <201902151620.x1FGKLpI009362@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rgrimes
Date: Fri Feb 15 16:20:21 2019
New Revision: 344159
URL: https://svnweb.freebsd.org/changeset/base/344159

Log:
  In r340042 an attempt to quiet coverity warning cid 1305412 was overdone.
  nopt is the only allocated space,
  xopt and cp are aliases into that allocated space.
  Remove the 2 unneeded free's
  
  Reported by:	Patrick Mooney (@pmooney_pfmooney.com)
  Reviewed by:	jhb (maintainer), Patrick Mooney (joyent/illumos)
  Approved by:	bde (mentor)
  CID:		1305412
  MFC after:	3 days
  MFC with:	340042
  Differential Revision:	https://reviews.freebsd.org/D19200

Modified:
  head/usr.sbin/bhyve/block_if.c

Modified: head/usr.sbin/bhyve/block_if.c
==============================================================================
--- head/usr.sbin/bhyve/block_if.c	Fri Feb 15 11:36:16 2019	(r344158)
+++ head/usr.sbin/bhyve/block_if.c	Fri Feb 15 16:20:21 2019	(r344159)
@@ -576,8 +576,6 @@ blockif_open(const char *optstr, const char *ident)
 err:
 	if (fd >= 0)
 		close(fd);
-	free(cp);
-	free(xopts);
 	free(nopt);
 	return (NULL);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902151620.x1FGKLpI009362>