libtracecmd: Do not free records at end of iterator

I'm not sure why the records that were saved in the "peek" were freed, as
they should be freed when the tracecmd_input is closed.

Remove the freeing of the "peek" records, as it should be unneeded.

This basically reverts:

  890855541 ("tracecmd library: Unlock records in tracecmd_iterate_events()")

And commits that simulated it.

Link: https://lore.kernel.org/linux-trace-devel/[email protected]

Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 file changed