Author: vangyzen
Date: Mon May 28 03:05:01 2018
New Revision: 334271
URL: https://svnweb.freebsd.org/changeset/base/334271
Log:
bhyve: fix small memory leak in virtio console
Reported by: Coverity
CID: 1363284
Sponsored by: Dell EMC
Modified:
head/usr.sbin/bhyve/pci_virtio_console.c
Modified: head/usr.sbin/bhyve/pci_virtio_console.c
==============================================================================
--- head/usr.sbin/bhyve/pci_virtio_console.c Mon May 28 02:40:06 2018
(r334270)
+++ head/usr.sbin/bhyve/pci_virtio_console.c Mon May 28 03:05:01 2018
(r334271)
@@ -651,7 +651,7 @@ pci_vtcon_init(struct vmctx *ctx, struct pci_devinst *
while ((opt = strsep(&opts, ",")) != NULL) {
portname = strsep(&opt, "=");
- portpath = strdup(opt);
+ portpath = opt;
/* create port */
if (pci_vtcon_sock_add(sc, portname, portpath) < 0) {
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"