diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-05-08 13:05:00 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-05-08 13:05:00 (GMT) |
commit | ae1be622b9f8f6fda89c014dd6f69b1b09596467 (patch) | |
tree | 374bb76517cfd0f04e2c34e4f93a119210a48872 | |
parent | 713754f81f92fb7431e94a66f7e8fa6537161387 (diff) | |
download | hdf5-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.
-rw-r--r-- | src/H5Shyper.c | 2 |
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; |