aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2018-05-22 06:02:11 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2018-05-22 06:02:11 +0000
commit92046bf11323ae8917cbcaa11737a9cb477c93cc (patch)
tree07abad4c088482d3f372024478e206cdd96cb4fb /usr.sbin
parentdf58dad5206ce838aa73bc8201634d2678346590 (diff)
downloadsrc-92046bf11323ae8917cbcaa11737a9cb477c93cc.tar.gz
src-92046bf11323ae8917cbcaa11737a9cb477c93cc.zip
Revert: r334016
Revert for now this change, it in somehow breaks init_pci.
Notes
Notes: svn path=/head/; revision=334021
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bhyve/pci_emul.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/pci_emul.c b/usr.sbin/bhyve/pci_emul.c
index f30096bfaf54..eeb68715b657 100644
--- a/usr.sbin/bhyve/pci_emul.c
+++ b/usr.sbin/bhyve/pci_emul.c
@@ -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);
}