HomeFreeBSD

subr_mbpool: Don't free bogus pointer in error paths

Description

subr_mbpool: Don't free bogus pointer in error paths

An mbpool is allocated with a contiguous array of mbpages. Freeing an
individual mbpage has never been valid. Don't do it.

This bug has been present since this code was introduced in r117624 (2003).

Reported by: Coverity
CID: 1009687
Sponsored by: EMC / Isilon Storage Division

Details

Provenance
cemAuthored on
Parents
rS298676: netipsec: Don't leak memory when deep copy fails
Branches
Unknown
Tags
Unknown