summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-07-30 01:38:41 -0500
committerNoriko Hosoi <nhosoi@redhat.com>2010-08-19 14:25:09 -0700
commit287c8617abae51c45856acea0c598ef610618cda (patch)
tree328618e7df24f240daa9470c34bbca6ae1fb860d
parentb4fb0eae14911413612273c152cb935a6f8804b2 (diff)
downloadds-287c8617abae51c45856acea0c598ef610618cda.tar.gz
ds-287c8617abae51c45856acea0c598ef610618cda.tar.xz
ds-287c8617abae51c45856acea0c598ef610618cda.zip
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.
-rw-r--r--ldap/servers/plugins/replication/repl5_connection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ldap/servers/plugins/replication/repl5_connection.c b/ldap/servers/plugins/replication/repl5_connection.c
index 5aabdac2..d78c3887 100644
--- a/ldap/servers/plugins/replication/repl5_connection.c
+++ b/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;
}