From f1b9ea88dea6a4b124ea7dbfca6605f7838db6b3 Mon Sep 17 00:00:00 2001 From: bebbo Date: Mon, 11 Apr 2022 14:48:50 +0200 Subject: [PATCH] fix merge after in deallocate --- amitools/vamos/lib/lexec/Alloc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amitools/vamos/lib/lexec/Alloc.py b/amitools/vamos/lib/lexec/Alloc.py index 384ea33b..3530c6d2 100644 --- a/amitools/vamos/lib/lexec/Alloc.py +++ b/amitools/vamos/lib/lexec/Alloc.py @@ -253,7 +253,7 @@ def deallocate(ctx, mh_addr, blk_addr, num_bytes, check=False): log_exec.debug("grow cur: %s", mc) # no merging possible -> create a new chunk between last and cur else: - next_addr = mc.addr if mc is not None else 0 + next_addr = mc.next if mc is not None else 0 mc_new = MemChunk(next_addr, num_bytes, blk_addr) mc_new.write(ctx) if mc_last: