aboutsummaryrefslogtreecommitdiff
path: root/core/os_windows.odin
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-01-28 20:16:18 +0000
committerGinger Bill <bill@gingerbill.org>2017-01-28 20:16:18 +0000
commite86c990b75bb30f0116430453b42a59317e3fead (patch)
tree2645005099bd2cf744299d6a3538408ed5728d39 /core/os_windows.odin
parent31aacd5bf435224c7d8f9b19359175d3e6d25660 (diff)
Overloaded `free`; 3 dotted ellipsisv0.0.6a
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;
}