diff options
author | Endi S. Dewata <edewata@redhat.com> | 2010-07-30 10:58:53 -0500 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2010-08-19 14:26:25 -0700 |
commit | 1d1f6b4ae5bf8bcf5a7013df347da13681a1383c (patch) | |
tree | 31fc7dc36c3c059eae0cb8cf13343bd4584ba056 | |
parent | 43fe9ac3ac239a1f49ee618820fa783fe4f15c44 (diff) | |
download | ds-1d1f6b4ae5bf8bcf5a7013df347da13681a1383c.tar.gz ds-1d1f6b4ae5bf8bcf5a7013df347da13681a1383c.tar.xz ds-1d1f6b4ae5bf8bcf5a7013df347da13681a1383c.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 12044.
description: The prot_thread_main() has been modified to release dn when it's no longer used.
-rw-r--r-- | ldap/servers/plugins/replication/repl5_protocol.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |