Bug path
‘test_43’
:
event 1
531
global_link.m_ptr = malloc (sizeof (struct link)); /* { dg-message "allocated here" } */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
(1) allocated here
‘test_43’
:
event 2
532
global_link.m_ptr = NULL; /* { dg-warning "leak of 'global_link.m_ptr'" } */
^
|
(2) ‘global_link.m_ptr’ leaks here; was allocated at (1)