Bug path

test_5b
‘test_5b’: events 1-2
67void test_5b (void)
^~~~~~~
|
(1) entry to ‘test_5b’
68{
69 called_by_test_5b ();
~~~~~~~~~~~~~~~~~~~~
|
(2) calling ‘called_by_test_5b’ from ‘test_5b’
called_by_test_5b
‘called_by_test_5b’: events 3-5
59called_by_test_5b (void)
^~~~~~~~~~~~~~~~~
|
(3) entry to ‘called_by_test_5b’
[...]
62 r.ptr = malloc (sizeof (int));
~~~~~~~~~~~~~~~~~~~~~
|
(4) allocated here
63 return r; /* { dg-warning "leak of '<return-value>.ptr'" } */
~
|
(5) ‘<return-value>.ptr’ leaks here; was allocated at (4)