Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2019 19:41:15 +0000 (UTC)
From:      Sean Chittenden <seanc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r349918 - head/usr.sbin/bhyve
Message-ID:  <201907111941.x6BJfFpA019091@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: seanc (ports committer)
Date: Thu Jul 11 19:41:14 2019
New Revision: 349918
URL: https://svnweb.freebsd.org/changeset/base/349918

Log:
  usr.sbin/bhyve: free leaked memory during option parsing
  
  Also update to use strsep(3) instead of strtok(3).
  
  Most of this commit inadvertently ended up in r349914.
  
  Coverity CID:	1357337
  Approved by:	markj
  PR:		233038
  Differential Revision:	https://reviews.freebsd.org/D20918

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

Modified: head/usr.sbin/bhyve/pci_fbuf.c
==============================================================================
--- head/usr.sbin/bhyve/pci_fbuf.c	Thu Jul 11 19:36:18 2019	(r349917)
+++ head/usr.sbin/bhyve/pci_fbuf.c	Thu Jul 11 19:41:14 2019	(r349918)
@@ -317,7 +317,7 @@ pci_fbuf_parse_opts(struct pci_fbuf_softc *sc, char *o
 	}
 
 done:
-	free(uopts);
+	free(uoptsbak);
 	return (ret);
 }
 



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