HomeFreeBSD

proc_init: Fix a few memory leaks of 'phdl'

Description

proc_init: Fix a few memory leaks of 'phdl'

In the normal case and correct failure cases, the 'phdl' pointer is passed to
callers to use or clean up as needed. However, some failure cases returned
early, failing to export the phdl pointer.

This was introduced in the restructuring of r303533.

Reported by: Coverity
CID: 1361070
Reviewed by: markj
Sponsored by: EMC / Isilon Storage Division

Details

Provenance
cemAuthored on Aug 2 2016, 6:13 PM
Parents
rG0cd7a91aa7f5: pfctl: Allow TOS bits to be cleared
Branches
Unknown
Tags
Unknown

Event Timeline