|
test_2
‘test_2’: events 1-4
52 | if (n > 10) |
| ^ |
| | |
| (1) following ‘true’ branch (when ‘n > 10’)... |
53 | ptr = (int *)malloc (sizeof (int) * n); |
| ~~~~~~~~~~~~~~~~~~~~~~~~~ |
| | |
| (2) ...to here |
| (3) allocated here |
[...] | |
63 | return result; /* { dg-message "leak of 'ptr'" } */ |
| ~~~~~~ |
| | |
| (4) ‘ptr’ leaks here; was allocated at (3) |
|
|