|
‘test_13’: events 1-4
| 134 | void *p = malloc (1024); /* { dg-message "allocated here" } */ |
| ^~~~~~~~~~~~~ |
| | |
| (1) allocated here |
| [...] | |
| 138 | if (!q) |
| ~ |
| | |
| (2) following ‘true’ branch (when ‘q’ is NULL)... |
| 139 | { |
| 140 | free (q); |
| ~~~~~~~~ |
| | |
| (3) ...to here |
| 141 | return; /* { dg-warning "leak of 'p'" } */ |
| ~~~~~~ |
| | |
| (4) ‘p’ leaks here; was allocated at (1) |
|