| commit | 484f8773503ce0db0e66b7e25f53d00e07cc6796 | [log] [tgz] |
|---|---|---|
| author | Ting-Yuan Huang <laszio@google.com> | Tue Aug 29 16:05:31 2017 -0700 |
| committer | Ting-Yuan Huang <laszio@google.com> | Tue Sep 12 15:48:16 2017 -0700 |
| tree | 43865a1656dbc6ae905e8da447f32a4ece402537 | |
| parent | f9ed7b5507b4355021acc22adc14451e2e2d63ef [diff] |
Fix reduce_allocation(). alloc->list.last was repeatedly freed. Test: built without seeing warnings. Change-Id: Ia8b2f9d4b8ba9fbe13fae5d7a0a4d526ddc863d6
diff --git a/ext4_utils/allocate.c b/ext4_utils/allocate.c index 00f2203..5f6347d 100644 --- a/ext4_utils/allocate.c +++ b/ext4_utils/allocate.c
@@ -255,6 +255,7 @@ len -= last_reg->len; if (reg) { reg->next = NULL; + alloc->list.last = reg; } else { alloc->list.first = NULL; alloc->list.last = NULL;