Rename free to delete for non pointer types

This commit is contained in:
gingerBill committed 2018-07-08 11:03:56 +01:00
1 parent e515220694
commit 0e91298fd1
8 files changed
+130 -102

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ read_entire_file :: proc(name: string) -> (data: []byte, success: bool) {
bytes_read, read_err := read(fd, data);
if read_err != 0 {
free(data);
delete(data);
return nil, false;
}
return data[0..bytes_read], true;