[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)
This commit is contained in:
Quincey Koziol 2002-11-20 07:38:39 -05:00
parent 5f91db8d68
commit 973c40d85f

View File

@ -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 */