Bug path

test_1
‘test_1’: events 1-2
9 char *p = strndup (s, 42); /* { dg-message "allocated here" } */
^~~~~~~~~~~~~~~
|
(1) allocated here
10} /* { dg-warning "leak of 'p'" } */
~
|
(2) ‘p’ leaks here; was allocated at (1)