From 753ee0945a968c849e37cc42971dc5a75bc4f0a8 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Tue, 14 Sep 2010 23:33:13 -0400 Subject: Bug 630092 - Coverity #15482: Resource leaks issues https://bugzilla.redhat.com/show_bug.cgi?id=630092 Description: The windows_search_local_entry_by_uniqueid() has been modified to release the memory allocated for local_subtree. --- ldap/servers/plugins/replication/windows_protocol_util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ldap/servers/plugins/replication/windows_protocol_util.c') diff --git a/ldap/servers/plugins/replication/windows_protocol_util.c b/ldap/servers/plugins/replication/windows_protocol_util.c index ff39fb5b..3fe42cf0 100644 --- a/ldap/servers/plugins/replication/windows_protocol_util.c +++ b/ldap/servers/plugins/replication/windows_protocol_util.c @@ -4607,6 +4607,8 @@ windows_search_local_entry_by_uniqueid(Private_Repl_Protocol *prp, const char *u { PR_smprintf_free(filter_string); } + + if (is_global) slapi_sdn_free(&local_subtree); return rc; } -- cgit