Browse Source

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.
Endi Sukma Dewata 15 years ago
parent
commit
753ee0945a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      ldap/servers/plugins/replication/windows_protocol_util.c

+ 2 - 0
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;
 }