diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-01-08 23:29:49 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-01-08 23:29:49 (GMT) |
commit | 2104bd1e0a85c01a871910803883637f48ac2573 (patch) | |
tree | 7eb3f70b5981be590582805aac655929b941eeaf /src/H5A.c | |
parent | d978a22b36d148a17f331eb51d0e13ede524770a (diff) | |
download | hdf5-2104bd1e0a85c01a871910803883637f48ac2573.zip hdf5-2104bd1e0a85c01a871910803883637f48ac2573.tar.gz hdf5-2104bd1e0a85c01a871910803883637f48ac2573.tar.bz2 |
[svn-r13122] Description:
Add more tests for attributes with shared components.
Close memory leak in shared message table loading.
Tested on:
Linux/32 2.6 (chicago)
Linux/64 2.6 (chicago2)
Diffstat (limited to 'src/H5A.c')
-rw-r--r-- | src/H5A.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -365,11 +365,11 @@ H5A_create(const H5G_loc_t *loc, const char *name, const H5T_t *type, /* Check if any of the pieces should be (or are already) shared in the * SOHM table */ /* Data type */ - if(H5SM_try_share(attr->oloc.file, dxpl_id, H5O_DTYPE_ID, attr->dt) <0) + if(H5SM_try_share(attr->oloc.file, dxpl_id, H5O_DTYPE_ID, attr->dt) < 0) HGOTO_ERROR(H5E_OHDR, H5E_BADMESG, FAIL, "trying to share datatype failed") /* Data space */ - if(H5SM_try_share(attr->oloc.file, dxpl_id, H5O_SDSPACE_ID, attr->ds) <0) + if(H5SM_try_share(attr->oloc.file, dxpl_id, H5O_SDSPACE_ID, attr->ds) < 0) HGOTO_ERROR(H5E_OHDR, H5E_BADMESG, FAIL, "trying to share dataspace failed") |