https://bugzilla.redhat.com/show_bug.cgi?id=619122 Resolves: bug 619122 Bug description: fix coverify Defect Type: Resource leaks issues CID 12027. description: The windows_conn_new() has been modified to release rpc when an error occurs.
@@ -184,6 +184,7 @@ windows_conn_new(Repl_Agmt *agmt)
return rpc;
loser:
windows_conn_delete(rpc);
+ slapi_ch_free((void**)&rpc);
LDAPDebug( LDAP_DEBUG_TRACE, "<= windows_conn_new - loser\n", 0, 0, 0 );
return NULL;
}