diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2011-02-18 20:18:01 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2011-02-18 20:18:01 (GMT) |
commit | 13edfb217585eee6fe9f9f20d0b3198c1bb5af98 (patch) | |
tree | 411d76b3e9e3d121d7c3380276b578b0fc697517 /src | |
parent | c620068cb6bc26edf4f37feb41e825dac3c9a9ce (diff) | |
download | hdf5-13edfb217585eee6fe9f9f20d0b3198c1bb5af98.zip hdf5-13edfb217585eee6fe9f9f20d0b3198c1bb5af98.tar.gz hdf5-13edfb217585eee6fe9f9f20d0b3198c1bb5af98.tar.bz2 |
[svn-r20125] Bug 1586 - the datatype handler created with H5Tencode/decode had the reference count 0. I fixed it by changing the APP_REF parameter of H5I_register from FALSE to TRUE and added a test case in dtypes.c. The changes to configture.in, tools/misc, tools/lib, config, c++/test, Makefile.am, and fortran are only property changes when I merged from the trunk.
Tested on jam. But I tested the same fix in the trunk with h5committest.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5T.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -2807,6 +2807,11 @@ done: * slu@ncsa.uiuc.edu * July 14, 2004 * + * Modification:Raymond Lu + * songyulu@hdfgroup.org + * 17 February 2011 + * I changed the value for the APP_REF parameter of H5I_register + * from FALSE to TRUE. *------------------------------------------------------------------------- */ hid_t @@ -2827,7 +2832,7 @@ H5Tdecode(const void *buf) HGOTO_ERROR(H5E_DATATYPE, H5E_CANTDECODE, FAIL, "can't decode object") /* Register the type and return the ID */ - if((ret_value = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0) + if((ret_value = H5I_register(H5I_DATATYPE, dt, TRUE)) < 0) HGOTO_ERROR(H5E_DATATYPE, H5E_CANTREGISTER, FAIL, "unable to register data type") done: |