Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2018 06:02:11 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334021 - head/usr.sbin/bhyve
Message-ID:  <201805220602.w4M62BKO081593@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo
Date: Tue May 22 06:02:11 2018
New Revision: 334021
URL: https://svnweb.freebsd.org/changeset/base/334021

Log:
  Revert: r334016
  Revert for now this change, it in somehow breaks init_pci.

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

Modified: head/usr.sbin/bhyve/pci_emul.c
==============================================================================
--- head/usr.sbin/bhyve/pci_emul.c	Tue May 22 05:49:40 2018	(r334020)
+++ head/usr.sbin/bhyve/pci_emul.c	Tue May 22 06:02:11 2018	(r334021)
@@ -231,7 +231,8 @@ pci_parse_slot(char *opt)
 	si->si_funcs[fnum].fi_param = config;
 
 done:
-	free(str);
+	if (error)
+		free(str);
 
 	return (error);
 }



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