diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2003-05-07 22:30:56 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2003-05-07 22:30:56 (GMT) |
commit | 546dea5dd91434a5c68f89a95e47c541c9ddb637 (patch) | |
tree | 035742e699568931667dd2635b2c75984358dcda /src/H5T.c | |
parent | 401c1bc31813f5b44d575823a2c28175bb4e86a0 (diff) | |
download | hdf5-546dea5dd91434a5c68f89a95e47c541c9ddb637.zip hdf5-546dea5dd91434a5c68f89a95e47c541c9ddb637.tar.gz hdf5-546dea5dd91434a5c68f89a95e47c541c9ddb637.tar.bz2 |
[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
Diffstat (limited to 'src/H5T.c')
-rw-r--r-- | src/H5T.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |