Fix free bug not using the correct allocator

This commit is contained in:
gingerBill
2024-03-27 12:54:52 +00:00
parent 6422c090f2
commit b378eb2df3
2 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ XXH3_create_state :: proc(allocator := context.allocator) -> (res: ^XXH3_state,
} }
XXH3_destroy_state :: proc(state: ^XXH3_state, allocator := context.allocator) -> (err: Error) { XXH3_destroy_state :: proc(state: ^XXH3_state, allocator := context.allocator) -> (err: Error) {
free(state) free(state, allocator)
return .None return .None
} }