| 
  
     ‘calls_malloc’: events 3-5 
|     4 | calls_malloc (void) |  
 | ^~~~~~~~~~~~ |  
 | | |  
 | (3) entry to ‘calls_malloc’ |  
|     5 | { |  
|     6 |   void *result = malloc (1024); /* { dg-message "allocated here" } */ |  
 |                  ~~~~~~~~~~~~~ |  
 |                  | |  
 |                  (4) allocated here |  
|     7 |   return result; /* { dg-warning "leak of 'result'" } */ |  
 |          ~~~~~~ |  
 |          | |  
 |          (5) ‘result’ leaks here; was allocated at (4) |  
 
 |