bhyve: fix small memory leak in virtio console
Reported by: Coverity CID: 1363284 Sponsored by: Dell EMC
This commit is contained in:
parent
1925dfb9c6
commit
975f33299b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user