Switch back to dynamic allocation for the buffers, but free them when we're done with them.
Switch back to dynamic allocation for the buffers, but free them when we're done with them.

HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit