trace-graph: Fix saved pointer corruption in update_last_record()

The saved pointer was created with tracecmd_peek_data() and then set_cpu_to_time()
was called freeing the saved pointer. We could simply reference the pointer if
need be, but using tracecmd_read_data() is a better solution.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 file changed