Skip to content

Commit

Permalink
fix merge after in deallocate
Browse files Browse the repository at this point in the history
  • Loading branch information
bebbo committed Apr 11, 2022
1 parent 1eada7a commit f1b9ea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amitools/vamos/lib/lexec/Alloc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f1b9ea8

Please sign in to comment.