Bug path

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