HomeFreeBSD

bhyve: Don't free an invalid pointer.

Description

bhyve: Don't free an invalid pointer.

The netmap-specific data stored at be->opaque is freed by the caller
on error as part of freeing be.

Reviewed by: markj
Reported by: GCC -Wfree-nonheap-object
Differential Revision: https://reviews.freebsd.org/D36828

Details

Provenance
jhbAuthored on Oct 3 2022, 11:10 PM
Reviewer
markj
Differential Revision
D36828: bhyve: Don't free an invalid pointer.
Parents
rG1187e46d1b38: nvmecontrol wdc: Don't pass a bogus pointer to free().
Branches
Unknown
Tags
Unknown