Bug path

test_2
‘test_2’: events 1-2
16 global_union.ptr_val = malloc (1024); /* { dg-message "allocated here" } */
^~~~~~~~~~~~~
|
(1) allocated here
17 global_union.int_val = 0; /* { dg-warning "leak of 'global_union.ptr_val' " } */
~~~~~~~~~~~~~~~~~~~~~~~~
|
(2) ‘global_union.ptr_val’ leaks here; was allocated at (1)