mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-18 08:58:23 +00:00
mem: Make small_stack_resize* free if size is 0
This commit is contained in:
@@ -1537,7 +1537,7 @@ small_stack_resize_bytes_non_zeroed :: proc(
|
||||
return small_stack_alloc_bytes_non_zeroed(s, size, alignment, loc)
|
||||
}
|
||||
if size == 0 {
|
||||
return nil, nil
|
||||
return nil, small_stack_free(s, old_memory, loc)
|
||||
}
|
||||
start := uintptr(raw_data(s.data))
|
||||
end := start + uintptr(len(s.data))
|
||||
|
||||
Reference in New Issue
Block a user