Bug path

test_1
‘test_1’: event 1
29 free (ptr); /* { dg-warning "double-'free'" } */
^~~~~~~~~~
|
(1) second ‘free’ here