summaryrefslogtreecommitdiffstats
path: root/ldap/servers/plugins/replication
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-07-30 14:54:12 -0500
committerNoriko Hosoi <nhosoi@redhat.com>2010-08-19 14:26:37 -0700
commit3cb4de948bc0da7c8175134393096ca7d35bc2de (patch)
tree32ab03dcfc27c12bd19ae0f59fdd74f8bf66942c /ldap/servers/plugins/replication
parent8e71d566bdb5c4c37728ed3be7813fa5053ce398 (diff)
downloadds-3cb4de948bc0da7c8175134393096ca7d35bc2de.tar.gz
ds-3cb4de948bc0da7c8175134393096ca7d35bc2de.tar.xz
ds-3cb4de948bc0da7c8175134393096ca7d35bc2de.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 12049. description: The repl5_tot_run() has been modified to release area_sdn before it returns.
Diffstat (limited to 'ldap/servers/plugins/replication')
-rw-r--r--ldap/servers/plugins/replication/repl5_tot_protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/servers/plugins/replication/repl5_tot_protocol.c b/ldap/servers/plugins/replication/repl5_tot_protocol.c
index 28a94e63..d679ca29 100644
--- a/ldap/servers/plugins/replication/repl5_tot_protocol.c
+++ b/ldap/servers/plugins/replication/repl5_tot_protocol.c
@@ -476,7 +476,6 @@ repl5_tot_run(Private_Repl_Protocol *prp)
agmt_set_last_init_end(prp->agmt, current_time());
rc = cb_data.rc;
release_replica(prp);
- slapi_sdn_free(&area_sdn);
if (rc != LDAP_SUCCESS)
{
@@ -491,6 +490,7 @@ repl5_tot_run(Private_Repl_Protocol *prp)
}
done:
+ slapi_sdn_free(&area_sdn);
slapi_ch_free_string(&hostname);
if (cb_data.lock)
{