adamwill / 389-ds-base

Forked from 389-ds-base 4 years ago
Clone

92a3f99 Bug 750625 - Fix Coverity (11062) Resource leak

Authored and Committed by Noriko Hosoi 12 years ago
    Bug 750625 - Fix Coverity (11062) Resource leak
    
    https://bugzilla.redhat.com/show_bug.cgi?id=750625
    
    plugins/chainingdb/cb_bind.c (chainingdb_bind)
    
    Bug Description: Variable "sdn" going out of scope leaks
    the storage it points to.  If SLAPI_BIND_TARGET_SDN is not
    given (anonymous bind) to cb_bind, sizeof(Slapi_DN) leaks.
    
    Fix Description: Free sdn if the structure Slapi_DN is locally
    allocated.