Fix free bug not using the correct allocator
This commit is contained in:
1 parent
6422c090f2
commit
b378eb2df3
2 files changed
+10
-10
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user