mirror of
https://github.com/opnsense/src.git
synced 2026-03-13 22:25:45 -04:00
bhyve: fix small memory leak in virtio console
Reported by: Coverity CID: 1363284 Sponsored by: Dell EMC
This commit is contained in:
parent
488ee96b85
commit
054e6e1335
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue