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
Reviewer
markj
Parents
rS303668: Style tweaks.
Branches
Unknown
Tags
Unknown