Bug path
test
‘test’
:
event 1
7
ptr = malloc (1024);
^~~~~~~~~~~~~
|
(1) allocated here
‘test’
:
event 2
8
ptr = NULL; /* { dg-warning "leak of 'ptr'" } */
^
|
(2) ‘ptr’ leaks here; was allocated at (1)