Fix crash in singleheader test (#105)

Use `aligned_free` instead of `free` to free memory allocated by aligned function.
This commit is contained in:
Georgios Floros 2019-03-05 22:35:34 +02:00 committed by Daniel Lemire
parent 5040840578
commit 0ca170b130
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}