summaryrefslogtreecommitdiffstats
path: root/src/H5Oprivate.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-07-17 02:46:42 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-07-17 02:46:42 (GMT)
commit96a49c0d37ea736422c2cffe4bd22f0209e4fe24 (patch)
tree1be71f9a8081383666c91a3a5837c064fa7aaa59 /src/H5Oprivate.h
parent5e98b5bb36c9e0b1078e56d9b734657fcfe7a03d (diff)
downloadhdf5-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/H5Oprivate.h')
-rw-r--r--src/H5Oprivate.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Oprivate.h b/src/H5Oprivate.h
index 3f6edb5..ed2c56d 100644
--- a/src/H5Oprivate.h
+++ b/src/H5Oprivate.h
@@ -231,13 +231,13 @@ typedef herr_t (*H5O_operator_t)(const void *mesg/*in*/, unsigned idx,
/* General message operators */
H5_DLL herr_t H5O_create(H5F_t *f, hid_t dxpl_id, size_t size_hint,
H5G_entry_t *ent/*out*/);
-H5_DLL herr_t H5O_open(H5G_entry_t *ent);
+H5_DLL herr_t H5O_open(const H5G_entry_t *ent);
H5_DLL herr_t H5O_close(H5G_entry_t *ent);
H5_DLL int H5O_link(const H5G_entry_t *ent, int adjust, hid_t dxpl_id);
H5_DLL int H5O_count(H5G_entry_t *ent, unsigned type_id, hid_t dxpl_id);
H5_DLL htri_t H5O_exists(H5G_entry_t *ent, unsigned type_id, int sequence,
hid_t dxpl_id);
-H5_DLL void *H5O_read(H5G_entry_t *ent, unsigned type_id, int sequence,
+H5_DLL void *H5O_read(const H5G_entry_t *ent, unsigned type_id, int sequence,
void *mesg, hid_t dxpl_id);
H5_DLL int H5O_modify(H5G_entry_t *ent, unsigned type_id,
int overwrite, unsigned flags, unsigned update_flags, const void *mesg, hid_t dxpl_id);