HomeFreeBSD

in_pcb: don't leak credential refcounts on error

Description

in_pcb: don't leak credential refcounts on error

In the error path during allocating an in_pcb, the credentials
associated with the new struct get their reference count
increased early on, but not decremented when the allocation
fails.

Reported by: cmiller_netapp.com
MFC after: 3 days
Reviewed by: jhb, tuexen
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D45033

Details

Provenance
rscheffAuthored on Wed, May 1, 6:40 AM
Reviewer
jhb
Differential Revision
D45033: in_pcb: don't leak credential refcounts on error
Parents
rGb07689d1f2a2: beinstall: retire mergemaster support
Branches
Unknown
Tags
Unknown