[core/os2]: Fix memory leak on read_entire_file

This commit is contained in:
flysand7
2024-04-01 23:32:16 +11:00
parent c843002d07
commit 3ee9184537
+1 -1
View File
@@ -117,7 +117,7 @@ read_entire_file_from_file :: proc(f: ^File, allocator: runtime.Allocator) -> (d
} }
} else { } else {
buffer: [1024]u8 buffer: [1024]u8
out_buffer := make([dynamic]u8) out_buffer := make([dynamic]u8, 0, 0, allocator)
total := 0 total := 0
for { for {
n: int = --- n: int = ---