Bug path

‘test_24’: events 1-2
275 void *ptr = alloca (sizeof (int)); /* { dg-message "memory is allocated on the stack here" } */
^~~~~~~~~~~~~~~~~~~~~
|
(1) memory is allocated on the stack here
276 free (ptr); /* { dg-warning "'free' of memory allocated on the stack by 'alloca' \\('ptr'\\) will corrupt the heap \\\[CWE-590\\\]" } */
~~~~~~~~~~
|
(2) call to ‘free’ here