mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
[core/os2]: Fix memory leak on read_entire_file
This commit is contained in:
@@ -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 = ---
|
||||||
|
|||||||
Reference in New Issue
Block a user