mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-02 18:11:49 -07: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 {
|
||||
buffer: [1024]u8
|
||||
out_buffer := make([dynamic]u8)
|
||||
out_buffer := make([dynamic]u8, 0, 0, allocator)
|
||||
total := 0
|
||||
for {
|
||||
n: int = ---
|
||||
|
||||
Reference in New Issue
Block a user