Fix free bug not using the correct allocator

This commit is contained in:
gingerBill committed 2024-03-27 12:54:52 +00:00
1 parent 6422c090f2
commit b378eb2df3
2 files changed
+10 -10

No files matched your search

+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) {
free(state)
free(state, allocator)
return .None
}