ldap/servers/plugins/uiduniq/uid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 42fa2e668587efdac38cc7bbc68e059f92a3124c
Author: Noriko Hosoi <nhosoi(a)redhat.com>
Date: Mon Jul 14 14:28:19 2014 -0700
Ticket #47859 - Coverity: 12692 & 12717
12717 - Resource leak - servers/plugins/uiduniq/uid.c
Description: fixing a compiler error introduced by
commit 03f85ec06f6011e1573980e87319af2043e03948
diff --git a/ldap/servers/plugins/uiduniq/uid.c b/ldap/servers/plugins/uiduniq/uid.c
index d1a1700..07ff0ec 100644
--- a/ldap/servers/plugins/uiduniq/uid.c
+++ b/ldap/servers/plugins/uiduniq/uid.c
@@ -225,7 +225,7 @@ uniqueness_entry_to_config(Slapi_PBlock *pb, Slapi_Entry
*config_entry)
if (values) {
for (i = 0; values && values[i]; i++);
/* slapi_ch_calloc never returns NULL unless the 2 args are 0 or
negative. */
- tmp_config->subtrees = (Slapi_DN **) slapi_ch_calloc(i + 1,
sizeof (Slapi_DN *)));
+ tmp_config->subtrees = (Slapi_DN **) slapi_ch_calloc(i + 1,
sizeof (Slapi_DN *));
/* copy the valid subtree DN into the config */
for (i = 0, nb_subtrees = 0; values && values[i]; i++) {
if (slapi_dn_syntax_check(pb, values[i], 1)) { /* syntax
check failed */
Show replies by date