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:
parent
d1b19e8196
commit
aa6e93820c
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue