Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 May 2019 22:39:25 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r347411 - stable/11/usr.sbin/bhyve
Message-ID:  <201905092239.x49MdPpZ015767@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



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