Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2018 03:05:02 +0000 (UTC)
From:      Eric van Gyzen <vangyzen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334271 - head/usr.sbin/bhyve
Message-ID:  <201805280305.w4S352Mp091304@repo.freebsd.org>

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



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