From b68be619ceb59d9ad242841be4ebe2abb993d6d8 Mon Sep 17 00:00:00 2001 From: Nathan Kinder Date: Tue, 25 Nov 2008 16:15:09 +0000 Subject: Resolves: 430321 Summary: Fixed memory leak in collator plug-in. --- ldap/servers/plugins/collation/collate.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ldap/servers/plugins/collation/collate.c b/ldap/servers/plugins/collation/collate.c index e7e8195d..06bb556a 100644 --- a/ldap/servers/plugins/collation/collate.c +++ b/ldap/servers/plugins/collation/collate.c @@ -230,7 +230,6 @@ typedef struct collation_indexer_t UCollator* collator; UConverter* converter; struct berval** ix_keys; - int is_default_collator; } collation_indexer_t; /* @@ -386,8 +385,8 @@ collation_indexer_destroy (indexer_t* ix) ucnv_close(etc->converter); etc->converter = NULL; } - if (!etc->is_default_collator) { - /* Don't delete the default collation - it seems to cause problems */ + + if (etc->collator) { ucol_close(etc->collator); etc->collator = NULL; } @@ -469,7 +468,6 @@ collation_indexer_create (const char* oid) oid, profile->decomposition, err); } etc->collator = coll; - etc->is_default_collator = is_default; for (id = collation_id; *id; ++id) { if ((*id)->profile == profile) { break; /* found the 'official' id */ -- cgit