From 0ca170b130ead1e79ce27c7054b88a87a66db678 Mon Sep 17 00:00:00 2001 From: Georgios Floros <46479273+georgiosfloros@users.noreply.github.com> Date: Tue, 5 Mar 2019 22:35:34 +0200 Subject: [PATCH] Fix crash in singleheader test (#105) Use `aligned_free` instead of `free` to free memory allocated by aligned function. --- tests/singleheadertest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/singleheadertest.cpp b/tests/singleheadertest.cpp index 7f9405e8..052196f1 100644 --- a/tests/singleheadertest.cpp +++ b/tests/singleheadertest.cpp @@ -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; } \ No newline at end of file