bfa6608 Deallocate LDAP connections in safe way.

Authored and Committed by pspacek 11 years ago
    Deallocate LDAP connections in safe way.
    
    Current code does isc_mem_detach() before isc_mem_put() so
    memory context reference counter is wrong for a small time frame.
    
    Macro MEM_PUT_AND_DETACH will handle it properly including
    pointer zeroing.
    
    Signed-off-by: Petr Spacek <pspacek@redhat.com>
    
        
file modified
+6 -10