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) {
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to