summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-11-20 12:38:39 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-11-20 12:38:39 (GMT)
commit973c40d85f97e283919eb8145b3f14d0ff6204d7 (patch)
treebe2caa63b1edf10bc66e8ca133f785a0adb6ebfc /src
parent5f91db8d68d20d8106a58467c73fce15a953807a (diff)
downloadhdf5-973c40d85f97e283919eb8145b3f14d0ff6204d7.zip
hdf5-973c40d85f97e283919eb8145b3f14d0ff6204d7.tar.gz
hdf5-973c40d85f97e283919eb8145b3f14d0ff6204d7.tar.bz2
[svn-r6104] Purpose:
Bug Fix Description: Free blocks of space in the file which were merged with a block before them were not updating the free list information correctly, allowing space in the file to over-allocated and potentially corrupted. Solution: Correct address of free block during merging. Platforms tested: Tested h5committest {arabica (fortran), eirene (fortran, C++) modi4 (parallel, fortran)} FreeBSD 4.7 (sleipnir)
Diffstat (limited to 'src')
-rw-r--r--src/H5FD.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5FD.c b/src/H5FD.c
index d9721a3..60ab418 100644
--- a/src/H5FD.c
+++ b/src/H5FD.c
@@ -1879,6 +1879,7 @@ H5FD_free(H5FD_t *file, H5FD_mem_t type, haddr_t addr, hsize_t size)
curr->size+=size;
/* Adjust the information about to memory block to include the merged block */
+ addr=curr->addr;
size=curr->size;
/* Update the information about the merged node */