Fix crash in singleheader test (#105)
Use `aligned_free` instead of `free` to free memory allocated by aligned function.
This commit is contained in:
parent
5040840578
commit
0ca170b130
|
@ -14,6 +14,6 @@ int main() {
|
|||
std::cerr << simdjson::errorMsg(res) << std::endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
free((void*)p.data());
|
||||
aligned_free((void*)p.data());
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Loading…
Reference in New Issue