summaryrefslogtreecommitdiffstats
path: root/src/H5S.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-07-17 02:47:26 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-07-17 02:47:26 (GMT)
commit9cd32352ad91f881d243734c925a62aaf47e987a (patch)
treeca1df43a4b3670ab6da919da9f2fe12c3f477fb7 /src/H5S.c
parent86925daca58cc037b3c0b943b203b0b00d548d51 (diff)
downloadhdf5-9cd32352ad91f881d243734c925a62aaf47e987a.zip
hdf5-9cd32352ad91f881d243734c925a62aaf47e987a.tar.gz
hdf5-9cd32352ad91f881d243734c925a62aaf47e987a.tar.bz2
[svn-r11079] 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/H5S.c')
-rw-r--r--src/H5S.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5S.c b/src/H5S.c
index c6c0b9a..035d7a5 100644
--- a/src/H5S.c
+++ b/src/H5S.c
@@ -1125,7 +1125,7 @@ done:
*-------------------------------------------------------------------------
*/
H5S_t *
-H5S_read(H5G_entry_t *ent, hid_t dxpl_id)
+H5S_read(const H5G_entry_t *ent, hid_t dxpl_id)
{
H5S_t *ds = NULL; /* Dataspace to return */
H5S_t *ret_value; /* Return value */