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); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
||
|---|---|---|
| .. | ||
| compiler | ||
| fixtures | ||
| helpers | ||
| integration | ||
| runtime | ||
| test_helper.h | ||
| tests.cc | ||