summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-05-08 13:05:00 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-05-08 13:05:00 (GMT)
commitae1be622b9f8f6fda89c014dd6f69b1b09596467 (patch)
tree374bb76517cfd0f04e2c34e4f93a119210a48872 /src
parent713754f81f92fb7431e94a66f7e8fa6537161387 (diff)
downloadhdf5-ae1be622b9f8f6fda89c014dd6f69b1b09596467.zip
hdf5-ae1be622b9f8f6fda89c014dd6f69b1b09596467.tar.gz
hdf5-ae1be622b9f8f6fda89c014dd6f69b1b09596467.tar.bz2
[svn-r6830] Purpose:
Bug fix Description: Dataspace selections created for individual chunks during chunk dataset I/O were leaking memory. Solution: Properly set reference count on selection, so they get free'd when the dataspace is closed. Platforms tested: FreeBSD 4.8 (sleipnir) Triple check not needed.
Diffstat (limited to 'src')
-rw-r--r--src/H5Shyper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Shyper.c b/src/H5Shyper.c
index 2fe79aa..59858fe 100644
--- a/src/H5Shyper.c
+++ b/src/H5Shyper.c
@@ -3082,7 +3082,7 @@ H5S_hyper_add_span_element(H5S_t *space, unsigned rank, hssize_t *coords)
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "can't allocate hyperslab span");
/* Set the reference count */
- head->count=0;
+ head->count=1;
/* Reset the scratch pad space */
head->scratch=0;