Fix two memory leaks in mupen64plus-core/tools/r4300prof.c.