1
0
Эх сурвалжийг харах

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 12026.
description: The conn_new() has been modified to release rpc when an error occurs.
Endi S. Dewata 15 жил өмнө
parent
commit
287c8617ab

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

@@ -183,6 +183,7 @@ conn_new(Repl_Agmt *agmt)
 	return rpc;
 loser:
 	conn_delete(rpc);
+	slapi_ch_free((void**)&rpc);
 	return NULL;
 }