Bug path

‘test_31’: events 1-2
367 void *ptr = malloc (sizeof (struct link)); /* { dg-message "allocated here" } */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
(1) allocated here
368 tmp.m_ptr = (struct link *)ptr;
369} /* { dg-warning "leak of 'ptr'" } */
~
|
(2) ‘ptr’ leaks here; was allocated at (1)