Fix undefined behaviour around system_allocator, issue #133.
This commit is contained in:
parent
0653a9e48a
commit
1ffd8d9276
12 changed files with 104 additions and 25 deletions
|
|
@ -121,7 +121,7 @@ HBenchmarkResults *h_benchmark__m(HAllocator* mm__, HParser* parser, HParserTest
|
|||
ret->results[backend].failed_testcases++;
|
||||
}
|
||||
h_parse_result_free(res);
|
||||
free(res_unamb);
|
||||
(&system_allocator)->free(&system_allocator, res_unamb);
|
||||
}
|
||||
|
||||
if (tc_failed > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue