diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2010-09-14 23:33:13 -0400 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2010-09-17 12:14:25 -0700 |
commit | 753ee0945a968c849e37cc42971dc5a75bc4f0a8 (patch) | |
tree | d2bf71e524882149a6f78d9c393da67231877524 /ldap/servers | |
parent | 8c524b4700238edba8a307a213ba81cb56a2b913 (diff) | |
download | ds-753ee0945a968c849e37cc42971dc5a75bc4f0a8.tar.gz ds-753ee0945a968c849e37cc42971dc5a75bc4f0a8.tar.xz ds-753ee0945a968c849e37cc42971dc5a75bc4f0a8.zip |
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.
Diffstat (limited to 'ldap/servers')
-rw-r--r-- | ldap/servers/plugins/replication/windows_protocol_util.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |