summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/H5HG.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/H5HG.c b/src/H5HG.c
index 0b3412d..bd74185 100644
--- a/src/H5HG.c
+++ b/src/H5HG.c
@@ -858,9 +858,8 @@ H5HG_remove (H5F_t *f, H5HG_t *hobj)
assert (hobj->idx>0 && hobj->idx<heap->nalloc);
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 (u=0; u<heap->nalloc; u++) {