mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-09 07:32:32 +08:00
[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:
parent
401c1bc318
commit
546dea5dd9
@ -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);
|
||||
|
@ -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() */
|
||||
|
||||
|
||||
|
@ -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() */
|
||||
|
||||
|
||||
|
@ -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() */
|
||||
|
||||
|
||||
|
@ -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() */
|
||||
|
||||
|
||||
|
@ -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() */
|
||||
|
||||
|
||||
|
@ -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() */
|
||||
|
||||
|
||||
|
@ -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() */
|
||||
|
||||
|
||||
|
@ -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() */
|
||||
|
||||
|
||||
|
@ -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() */
|
||||
|
||||
|
||||
|
@ -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() */
|
||||
|
||||
|
||||
|
@ -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() */
|
||||
|
||||
|
||||
|
@ -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() */
|
||||
|
||||
|
||||
|
@ -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() */
|
||||
|
||||
|
||||
|
@ -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() */
|
||||
|
||||
|
||||
|
@ -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() */
|
||||
|
||||
|
||||
|
@ -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() */
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user