HomeFreeBSD

kern_rctl: Fix resource leak in error path

Description

kern_rctl: Fix resource leak in error path

Ordinarily, rctl_write_outbuf frees 'sb'. However, if we are in low memory
conditions we skip past the rctl_write_outbuf. In that case, free 'sb'.

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

Details

Provenance
cemAuthored on
Parents
rS298329: radix rn_inithead: Fix minor leak in low memory conditions
Branches
Unknown
Tags
Unknown