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); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
'Test' is a lot more straightforward of a name.