From 9defa2db2aa980c181bccc17b957742961a77635 Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Thu, 27 Jun 2002 14:04:22 -0500 Subject: [svn-r5724] Purpose: bug fix Description: In H5HG_remove, heap object header wasn't included for size("need" in H5HG_remove). Solution: Added heap object header size in. Platforms tested: Linux 2.2(eirene). --- src/H5HG.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/H5HG.c b/src/H5HG.c index a3fb554..283aba5 100644 --- a/src/H5HG.c +++ b/src/H5HG.c @@ -874,9 +874,8 @@ H5HG_remove (H5F_t *f, H5HG_t *hobj) assert (hobj->idx>0 && hobj->idxnalloc); assert (heap->obj[hobj->idx].begin); obj_start = heap->obj[hobj->idx].begin; - need = H5HG_ALIGN(heap->obj[hobj->idx].size); /* should this include the - * object header size? -rpm - */ + /* Include object header size */ + need = H5HG_ALIGN(heap->obj[hobj->idx].size)+H5HG_SIZEOF_OBJHDR(f); /* Move the new free space to the end of the heap */ for (i=0; inalloc; i++) { -- cgit v0.12