浏览代码

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 年之前
父节点
当前提交
753ee0945a
共有 1 个文件被更改,包括 2 次插入0 次删除
  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;
 }