Date: Fri, 2 Nov 2018 08:03:19 +0000 (UTC) From: Marcelo Araujo <araujo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r340045 - head/usr.sbin/bhyve Message-ID: <201811020803.wA283Jhv038679@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: araujo Date: Fri Nov 2 08:03:19 2018 New Revision: 340045 URL: https://svnweb.freebsd.org/changeset/base/340045 Log: Fix resource leak when using strdup(3). Reported by: Coverity CID: 1357337 Sponsored by: iXsystems Inc. Modified: head/usr.sbin/bhyve/pci_fbuf.c Modified: head/usr.sbin/bhyve/pci_fbuf.c ============================================================================== --- head/usr.sbin/bhyve/pci_fbuf.c Fri Nov 2 08:01:42 2018 (r340044) +++ head/usr.sbin/bhyve/pci_fbuf.c Fri Nov 2 08:03:19 2018 (r340045) @@ -319,6 +319,7 @@ pci_fbuf_parse_opts(struct pci_fbuf_softc *sc, char *o } done: + free(uopts); return (ret); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811020803.wA283Jhv038679>