bhyve: fix small memory leak in virtio console

Reported by:	Coverity
CID:		1363284
Sponsored by:	Dell EMC
This commit is contained in:
Eric van Gyzen 2018-05-28 03:05:01 +00:00
parent 488ee96b85
commit 054e6e1335
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334271

View File

@ -651,7 +651,7 @@ pci_vtcon_init(struct vmctx *ctx, struct pci_devinst *pi, char *opts)
while ((opt = strsep(&opts, ",")) != NULL) {
portname = strsep(&opt, "=");
portpath = strdup(opt);
portpath = opt;
/* create port */
if (pci_vtcon_sock_add(sc, portname, portpath) < 0) {