HomeFreeBSD

Delay calling yp_malloc_dnsent() until after some additional sanity

Description

Delay calling yp_malloc_dnsent() until after some additional sanity
checks to avoid leaking memory on error returns.

Reported by: Coverity
CID: 1007416
MFC after: 1 week

Details

Provenance
truckmanAuthored on
Parents
rS300635: Call free(cur) if strdup(dirp->d_name) fails to avoid a memory leak.
Branches
Unknown
Tags
Unknown