Silence false-positive warning in ts_record_free
This is safe but I think it is technically undefined behaviour to use a pointer
after it has been freed:
test/helpers/record_alloc.cc:75:3: warning: Use of memory after it is freed
record_deallocation(pointer);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -71,8 +71,8 @@ void *ts_record_calloc(size_t count, size_t size) {
}
void ts_record_free(void *pointer) {
- free(pointer);
record_deallocation(pointer);
+ free(pointer);
}
bool ts_record_allocations_toggle(bool value) {
