diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-07-17 02:46:42 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-07-17 02:46:42 (GMT) |
commit | 96a49c0d37ea736422c2cffe4bd22f0209e4fe24 (patch) | |
tree | 1be71f9a8081383666c91a3a5837c064fa7aaa59 /src/H5Sprivate.h | |
parent | 5e98b5bb36c9e0b1078e56d9b734657fcfe7a03d (diff) | |
download | hdf5-96a49c0d37ea736422c2cffe4bd22f0209e4fe24.zip hdf5-96a49c0d37ea736422c2cffe4bd22f0209e4fe24.tar.gz hdf5-96a49c0d37ea736422c2cffe4bd22f0209e4fe24.tar.bz2 |
[svn-r11078] Purpose:
Bug fix
Description:
Correct memory leak when a dataset is attempted to be opened, but turns
out to be a group or named datatype.
Also, clean up code that was leading to the leak and zero out empty
group entries to help prevent similar errors in the future.
Platforms tested:
FreebSD 4.11 (sleipnir)
Too minor to require h5committest
Diffstat (limited to 'src/H5Sprivate.h')
-rw-r--r-- | src/H5Sprivate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Sprivate.h b/src/H5Sprivate.h index 2fdda74..3fa0dc3 100644 --- a/src/H5Sprivate.h +++ b/src/H5Sprivate.h @@ -203,7 +203,7 @@ H5_DLL herr_t H5S_modify(struct H5G_entry_t *ent, const H5S_t *space, H5_DLL herr_t H5S_append(H5F_t *f, hid_t dxpl_id, struct H5O_t *oh, const H5S_t *ds, unsigned * oh_flags_ptr); H5_DLL size_t H5S_raw_size(const H5F_t *f, const H5S_t *space); -H5_DLL H5S_t *H5S_read(struct H5G_entry_t *ent, hid_t dxpl_id); +H5_DLL H5S_t *H5S_read(const struct H5G_entry_t *ent, hid_t dxpl_id); H5_DLL int H5S_extend(H5S_t *space, const hsize_t *size); H5_DLL int H5S_set_extent(H5S_t *space, const hsize_t *size); H5_DLL herr_t H5S_set_extent_real(H5S_t *space, const hsize_t *size); |