diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2005-01-29 05:41:35 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2005-01-29 05:41:35 (GMT) |
commit | f9ad232b420e95536efbcd3bde9513e58d081a12 (patch) | |
tree | 98b298e37ff4359b7b6d4a4fdf7b1476a50e31da /hl/src/H5IM.c | |
parent | 82e29e9369c589c8b9a5b3e5bb7637abd7144c8c (diff) | |
download | hdf5-f9ad232b420e95536efbcd3bde9513e58d081a12.zip hdf5-f9ad232b420e95536efbcd3bde9513e58d081a12.tar.gz hdf5-f9ad232b420e95536efbcd3bde9513e58d081a12.tar.bz2 |
[svn-r9883] Purpose:
added a first batch of dimension scales
fix some small bubgs in lite (a close function was not being called )
Description:
this batch contains the basic API functions described in the RFC and a minimal test file
Solution:
Platforms tested:
linux
solaris 64
AIX
windows
Misc. update:
Diffstat (limited to 'hl/src/H5IM.c')
-rw-r--r-- | hl/src/H5IM.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/hl/src/H5IM.c b/hl/src/H5IM.c index 4d5ce75..d1633f0 100644 --- a/hl/src/H5IM.c +++ b/hl/src/H5IM.c @@ -537,7 +537,7 @@ herr_t H5IMlink_palette( hid_t loc_id, hsize_t dim_ref; int ok_pal; - /* The image dataset may or not have the attribute "PALETTE" + /* The image dataset may or may not have the attribute "PALETTE" * First we try to open to see if it is already there; if not, it is created. * If it exists, the array of references is extended to hold the reference * to the new palette @@ -946,6 +946,10 @@ herr_t H5IMget_palette_info( hid_t loc_id, if ( H5Sclose( attr_space_id ) < 0 ) goto out; + /* close the dereferenced dataset */ + if (H5Dclose(pal_id)<0) + goto out; + free( refbuf ); } /* H5T_REFERENCE */ @@ -1057,6 +1061,10 @@ herr_t H5IMget_palette( hid_t loc_id, if ( H5Sclose( attr_space_id ) < 0 ) goto out; + /* close the dereferenced dataset */ + if (H5Dclose(pal_id)<0) + goto out; + free( refbuf ); } /* H5T_REFERENCE */ |