summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/H5FD.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5FD.c b/src/H5FD.c
index 6474446..8d152ec 100644
--- a/src/H5FD.c
+++ b/src/H5FD.c
@@ -2803,8 +2803,10 @@ H5FD_extend(H5FD_t *file, H5FD_mem_t type, haddr_t addr, hsize_t size, hsize_t e
/* Free the memory for the used block */
H5FL_FREE(H5FD_free_t, curr);
} /* end if */
- else
+ else {
+ curr->addr += extra_requested;
curr->size -= extra_requested;
+ } /* end else */
/* Leave now */
break;