Bläddra i källkod

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 år sedan
förälder
incheckning
753ee0945a
1 ändrade filer med 2 tillägg och 0 borttagningar
  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;
 }