Merge "Fix reduce_allocation()." am: 7d845bafe5
am: c32774f81e

Change-Id: I58b9a58d1e6b71da1f0c620afa2371f0cfcf2896
diff --git a/ext4_utils/allocate.c b/ext4_utils/allocate.c
index 28fc8e5..e0f662c 100644
--- a/ext4_utils/allocate.c
+++ b/ext4_utils/allocate.c
@@ -267,6 +267,7 @@
 			len -= last_reg->len;
 			if (reg) {
 				reg->next = NULL;
+				alloc->list.last = reg;
 			} else {
 				alloc->list.first = NULL;
 				alloc->list.last = NULL;