ldap/servers/plugins/replication/repl_extop.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 5a6518b567f4be6ee6ec2171461256842a8ae3e6
Author: Noriko Hosoi <nhosoi(a)redhat.com>
Date: Thu Jun 2 18:00:46 2011 -0700
Bug 709826 - Memory leak: when extra referrals configured
https://bugzilla.redhat.com/show_bug.cgi?id=709826
Description: "referrals" allocated in ber_scanf called with "[v]"
option is an array of chars. It should have been freed by
slapi_ch_array_free, but slapi_ch_free was actually called, which
does not releases the real strings, but just the array of pointers.
This patch calls slapi_ch_array_free.
diff --git a/ldap/servers/plugins/replication/repl_extop.c
b/ldap/servers/plugins/replication/repl_extop.c
index 38af8ab..ffbf2a9 100644
--- a/ldap/servers/plugins/replication/repl_extop.c
+++ b/ldap/servers/plugins/replication/repl_extop.c
@@ -1083,8 +1083,8 @@ send_response:
{
ruv_destroy (&supplier_ruv);
}
- /* referrals */
- slapi_ch_free((void **)&referrals);
+ /* referrals (char **) */
+ slapi_ch_array_free(referrals);
/* replicacsnstr */
slapi_ch_free((void **)&replicacsnstr);