[svn-r6828] Purpose: bug fix

Description: H5T_XXX_init_interface calls H5T_init_interface causing
     datatype not closed after file is closed.

Solution: changed H5T_init_interface to H5T_init

Platforms tested: h5committest
This commit is contained in:
Raymond Lu 2003-05-07 17:30:56 -05:00
parent 401c1bc318
commit 546dea5dd9
17 changed files with 18 additions and 18 deletions

View File

@ -1890,7 +1890,7 @@ H5T_unlock_cb (void *_dt, hid_t UNUSED id, const void UNUSED *key)
int
H5T_term_interface(void)
{
int i, nprint=0, n=0;
int i, j, nprint=0, n=0;
H5T_path_t *path = NULL;
FUNC_ENTER_NOINIT(H5T_term_interface);
@ -1900,7 +1900,6 @@ H5T_term_interface(void)
for (i=0; i<H5T_g.npaths; i++) {
path = H5T_g.path[i];
assert (path);
if (path->func) {
H5T_print_stats(path, &nprint/*in,out*/);
path->cdata.command = H5T_CONV_FREE;
@ -1917,6 +1916,7 @@ H5T_term_interface(void)
H5E_clear(); /*ignore the error*/
}
}
H5T_close (path->src);
H5T_close (path->dst);
H5FL_FREE(H5T_path_t,path);

View File

@ -54,7 +54,7 @@ H5T_init_array_interface(void)
{
FUNC_ENTER_NOINIT(H5T_init_array_interface);
FUNC_LEAVE_NOAPI(H5T_init_interface());
FUNC_LEAVE_NOAPI(H5T_init());
} /* H5T_init_array_interface() */

View File

@ -54,7 +54,7 @@ H5T_init_commit_interface(void)
{
FUNC_ENTER_NOINIT(H5T_init_commit_interface);
FUNC_LEAVE_NOAPI(H5T_init_interface());
FUNC_LEAVE_NOAPI(H5T_init());
} /* H5T_init_commit_interface() */

View File

@ -58,7 +58,7 @@ H5T_init_compound_interface(void)
{
FUNC_ENTER_NOINIT(H5T_init_compound_interface);
FUNC_LEAVE_NOAPI(H5T_init_interface());
FUNC_LEAVE_NOAPI(H5T_init());
} /* H5T_init_compound_interface() */

View File

@ -50,7 +50,7 @@ H5T_init_cset_interface(void)
{
FUNC_ENTER_NOINIT(H5T_init_cset_interface);
FUNC_LEAVE_NOAPI(H5T_init_interface());
FUNC_LEAVE_NOAPI(H5T_init());
} /* H5T_init_cset_interface() */

View File

@ -61,7 +61,7 @@ H5T_init_enum_interface(void)
{
FUNC_ENTER_NOINIT(H5T_init_enum_interface);
FUNC_LEAVE_NOAPI(H5T_init_interface());
FUNC_LEAVE_NOAPI(H5T_init());
} /* H5T_init_enum_interface() */

View File

@ -51,7 +51,7 @@ H5T_init_fields_interface(void)
{
FUNC_ENTER_NOINIT(H5T_init_fields_interface);
FUNC_LEAVE_NOAPI(H5T_init_interface());
FUNC_LEAVE_NOAPI(H5T_init());
} /* H5T_init_fields_interface() */

View File

@ -50,7 +50,7 @@ H5T_init_fixed_interface(void)
{
FUNC_ENTER_NOINIT(H5T_init_fixed_interface);
FUNC_LEAVE_NOAPI(H5T_init_interface());
FUNC_LEAVE_NOAPI(H5T_init());
} /* H5T_init_fixed_interface() */

View File

@ -50,7 +50,7 @@ H5T_init_float_interface(void)
{
FUNC_ENTER_NOINIT(H5T_init_float_interface);
FUNC_LEAVE_NOAPI(H5T_init_interface());
FUNC_LEAVE_NOAPI(H5T_init());
} /* H5T_init_float_interface() */

View File

@ -61,7 +61,7 @@ H5T_init_native_interface(void)
{
FUNC_ENTER_NOINIT(H5T_init_native_interface);
FUNC_LEAVE_NOAPI(H5T_init_interface());
FUNC_LEAVE_NOAPI(H5T_init());
} /* H5T_init_native_interface() */

View File

@ -53,7 +53,7 @@ H5T_init_offset_interface(void)
{
FUNC_ENTER_NOINIT(H5T_init_offset_interface);
FUNC_LEAVE_NOAPI(H5T_init_interface());
FUNC_LEAVE_NOAPI(H5T_init());
} /* H5T_init_offset_interface() */

View File

@ -51,7 +51,7 @@ H5T_init_opaque_interface(void)
{
FUNC_ENTER_NOINIT(H5T_init_opaque_interface);
FUNC_LEAVE_NOAPI(H5T_init_interface());
FUNC_LEAVE_NOAPI(H5T_init());
} /* H5T_init_opaque_interface() */

View File

@ -50,7 +50,7 @@ H5T_init_order_interface(void)
{
FUNC_ENTER_NOINIT(H5T_init_order_interface);
FUNC_LEAVE_NOAPI(H5T_init_interface());
FUNC_LEAVE_NOAPI(H5T_init());
} /* H5T_init_order_interface() */

View File

@ -50,7 +50,7 @@ H5T_init_pad_interface(void)
{
FUNC_ENTER_NOINIT(H5T_init_pad_interface);
FUNC_LEAVE_NOAPI(H5T_init_interface());
FUNC_LEAVE_NOAPI(H5T_init());
} /* H5T_init_pad_interface() */

View File

@ -53,7 +53,7 @@ H5T_init_precis_interface(void)
{
FUNC_ENTER_NOINIT(H5T_init_precis_interface);
FUNC_LEAVE_NOAPI(H5T_init_interface());
FUNC_LEAVE_NOAPI(H5T_init());
} /* H5T_init_precis_interface() */

View File

@ -50,7 +50,7 @@ H5T_init_strpad_interface(void)
{
FUNC_ENTER_NOINIT(H5T_init_strpad_interface);
FUNC_LEAVE_NOAPI(H5T_init_interface());
FUNC_LEAVE_NOAPI(H5T_init());
} /* H5T_init_strpad_interface() */

View File

@ -61,7 +61,7 @@ H5T_init_vlen_interface(void)
{
FUNC_ENTER_NOINIT(H5T_init_vlen_interface);
FUNC_LEAVE_NOAPI(H5T_init_interface());
FUNC_LEAVE_NOAPI(H5T_init());
} /* H5T_init_vlen_interface() */