mem: Remove pointless check in Scratch_Allocator

The backup allocator is set at `init` which happens even if `Scratch` is
nil at the head of `scratch_alloc_bytes_non_zeroed`.
This commit is contained in:
Feoramund
2025-06-14 08:36:17 -04:00
parent c4f6e973d9
commit 7580dc2dd0

View File

@@ -545,9 +545,6 @@ scratch_alloc_bytes_non_zeroed :: proc(
if err != nil {
return ptr, err
}
if s.leaked_allocations == nil {
s.leaked_allocations, err = make([dynamic][]byte, a)
}
append(&s.leaked_allocations, ptr)
if logger := context.logger; logger.lowest_level <= .Warning {
if logger.procedure != nil {