From 250c472a8c165a7b11b4692aa10429e137db23bc Mon Sep 17 00:00:00 2001 From: Marcelo Araujo Date: Fri, 2 Nov 2018 08:03:19 +0000 Subject: [PATCH] Fix resource leak when using strdup(3). Reported by: Coverity CID: 1357337 Sponsored by: iXsystems Inc. --- usr.sbin/bhyve/pci_fbuf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/bhyve/pci_fbuf.c b/usr.sbin/bhyve/pci_fbuf.c index 2669ea14d3f4..8ed340580b5d 100644 --- a/usr.sbin/bhyve/pci_fbuf.c +++ b/usr.sbin/bhyve/pci_fbuf.c @@ -319,6 +319,7 @@ pci_fbuf_parse_opts(struct pci_fbuf_softc *sc, char *opts) } done: + free(uopts); return (ret); }