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);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
Phil Turnbull 2017-06-14 11:02:59 -04:00
parent d1b19e8196
commit aa6e93820c

View file

@ -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) {