Skip to content

Commit a68b09e

Browse files
committed
Really fix temp allocator poisoning behaviour
1 parent f6bdf9b commit a68b09e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

base/runtime/default_temp_allocator_arena.odin

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ memory_block_alloc :: proc(allocator: Allocator, capacity: uint, alignment: uint
5555
memory_block_dealloc :: proc(block_to_free: ^Memory_Block, loc := #caller_location) {
5656
if block_to_free != nil {
5757
allocator := block_to_free.allocator
58+
sanitizer.address_unpoison(block_to_free.base[:block_to_free.capacity])
5859
mem_free(block_to_free, allocator, loc)
5960
}
6061
}

0 commit comments

Comments
 (0)