Bläddra i källkod

Bug 619122 - fix coverify Defect Type: Resource leaks issues CID 11975 - 12053

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.
Endi S. Dewata 15 år sedan
förälder
incheckning
1aed664240
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      ldap/servers/plugins/replication/windows_connection.c

+ 1 - 0
ldap/servers/plugins/replication/windows_connection.c

@@ -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;
 }