From 1d1f6b4ae5bf8bcf5a7013df347da13681a1383c Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Fri, 30 Jul 2010 10:58:53 -0500 Subject: 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 12044. description: The prot_thread_main() has been modified to release dn when it's no longer used. --- ldap/servers/plugins/replication/repl5_protocol.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ldap/servers/plugins/replication/repl5_protocol.c b/ldap/servers/plugins/replication/repl5_protocol.c index 1ff901b1..8243688e 100644 --- a/ldap/servers/plugins/replication/repl5_protocol.c +++ b/ldap/servers/plugins/replication/repl5_protocol.c @@ -320,6 +320,7 @@ prot_thread_main(void *arg) Slapi_DN *dn = agmt_get_replarea(agmt); Replica *replica = NULL; Object *replica_obj = replica_get_replica_from_dn(dn); + slapi_sdn_free(&dn); if (replica_obj) { replica = (Replica*) object_get_data (replica_obj); -- cgit