From 973c40d85f97e283919eb8145b3f14d0ff6204d7 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Wed, 20 Nov 2002 07:38:39 -0500 Subject: [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) --- src/H5FD.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- cgit v0.12