summaryrefslogtreecommitdiffstats
path: root/ldap/servers
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-07-30 02:06:33 -0500
committerNoriko Hosoi <nhosoi@redhat.com>2010-08-19 14:25:24 -0700
commit8565e233079daa65291c8e5283ba9c1e798c8392 (patch)
tree795bcb6b2c77ca56cedf836e2490f0c06d0767b1 /ldap/servers
parent1aed66424027e255f603e56cf7289ed8e9ba2ee8 (diff)
downloadds-8565e233079daa65291c8e5283ba9c1e798c8392.tar.gz
ds-8565e233079daa65291c8e5283ba9c1e798c8392.tar.xz
ds-8565e233079daa65291c8e5283ba9c1e798c8392.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 12028. description: The prot_new() has been modified to release replarea_sdn before it returns.
Diffstat (limited to 'ldap/servers')
-rw-r--r--ldap/servers/plugins/replication/repl5_protocol.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ldap/servers/plugins/replication/repl5_protocol.c b/ldap/servers/plugins/replication/repl5_protocol.c
index 0f4d1fa7..1ff901b1 100644
--- a/ldap/servers/plugins/replication/repl5_protocol.c
+++ b/ldap/servers/plugins/replication/repl5_protocol.c
@@ -136,12 +136,13 @@ prot_new(Repl_Agmt *agmt, int protocol_state)
/* XXXggood register callback handlers for entries updated, and
schedule window enter/leave. */
- slapi_sdn_free(&replarea_sdn);
- return rp;
+ goto done;
loser:
prot_delete(&rp);
- return NULL;
+done:
+ slapi_sdn_free(&replarea_sdn);
+ return rp;
}