aboutsummaryrefslogtreecommitdiff
path: root/core/os_windows.odin
diff options
context:
space:
mode:
Diffstat (limited to 'core/os_windows.odin')
-rw-r--r--core/os_windows.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/os_windows.odin b/core/os_windows.odin
index 4127d6242..5cc21d30a 100644
--- a/core/os_windows.odin
+++ b/core/os_windows.odin
@@ -235,7 +235,7 @@ read_entire_file :: proc(name: string) -> ([]byte, bool) {
win32.ReadFile(cast(win32.HANDLE)fd, ^data[total_read], to_read, ^single_read_length, nil);
if single_read_length <= 0 {
- free(data.data);
+ free(data);
return nil, false;
}