[PATCH 6.0 202/314] tracing: Fix memory leak in test_gen_synth_cmd() and test_empty_synth_event()