ECC-440: grib_index_release/grib_index_delete does not close the file

This commit is contained in:
Shahram Najm 2020-06-28 17:22:15 +01:00
parent 034778d722
commit b264ec902f
1 changed files with 23 additions and 26 deletions

View File

@ -280,7 +280,7 @@ const char* grib_get_package_name()
return "ecCodes";
}
#define DEFAULT_FILE_POOL_MAX_OPENED_FILES 200
#define DEFAULT_FILE_POOL_MAX_OPENED_FILES 0
static grib_context default_grib_context = {
0, /* inited */
@ -538,13 +538,10 @@ grib_context* grib_context_get_default()
default_grib_context.grib_samples_path);
default_grib_context.keys_count = 0;
default_grib_context.keys = grib_hash_keys_new(&(default_grib_context),
&(default_grib_context.keys_count));
default_grib_context.keys = grib_hash_keys_new(&(default_grib_context), &(default_grib_context.keys_count));
default_grib_context.concepts_index = grib_itrie_new(&(default_grib_context),
&(default_grib_context.concepts_count));
default_grib_context.hash_array_index = grib_itrie_new(&(default_grib_context),
&(default_grib_context.hash_array_count));
default_grib_context.concepts_index = grib_itrie_new(&(default_grib_context), &(default_grib_context.concepts_count));
default_grib_context.hash_array_index = grib_itrie_new(&(default_grib_context), &(default_grib_context.hash_array_count));
default_grib_context.def_files = grib_trie_new(&(default_grib_context));
default_grib_context.lists = grib_trie_new(&(default_grib_context));
default_grib_context.classes = grib_trie_new(&(default_grib_context));