svn commit: r347411 - stable/11/usr.sbin/bhyve
John Baldwin
jhb at FreeBSD.org
Thu May 9 22:39:26 UTC 2019
Author: jhb
Date: Thu May 9 22:39:24 2019
New Revision: 347411
URL: https://svnweb.freebsd.org/changeset/base/347411
Log:
MFC 334271: bhyve: fix small memory leak in virtio console
Modified:
stable/11/usr.sbin/bhyve/pci_virtio_console.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/bhyve/pci_virtio_console.c
==============================================================================
--- stable/11/usr.sbin/bhyve/pci_virtio_console.c Thu May 9 22:38:15 2019 (r347410)
+++ stable/11/usr.sbin/bhyve/pci_virtio_console.c Thu May 9 22:39:24 2019 (r347411)
@@ -630,7 +630,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) {
More information about the svn-src-all
mailing list