svn commit: r349918 - head/usr.sbin/bhyve
Sean Chittenden
seanc at FreeBSD.org
Thu Jul 11 19:41:16 UTC 2019
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);
}
More information about the svn-src-all
mailing list