aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--trace-read.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/trace-read.c b/trace-read.c
index f7b9e17..12862b5 100644
--- a/trace-read.c
+++ b/trace-read.c
@@ -203,8 +203,6 @@ static void show_data(struct tracecmd_input *handle,
203 pevent_print_event(pevent, &s, record); 203 pevent_print_event(pevent, &s, record);
204 trace_seq_do_printf(&s); 204 trace_seq_do_printf(&s);
205 printf("\n"); 205 printf("\n");
206
207 free_record(record);
208} 206}
209 207
210static void read_rest(void) 208static void read_rest(void)
@@ -252,9 +250,10 @@ static void read_data_info(struct tracecmd_input *handle)
252 } else 250 } else
253 record = tracecmd_read_next_data(handle, &cpu); 251 record = tracecmd_read_next_data(handle, &cpu);
254 252
255 if (record) 253 if (record) {
256 show_data(handle, record, next); 254 show_data(handle, record, next);
257 255 free_record(record);
256 }
258 } while (record); 257 } while (record);
259 258
260 show_test(handle); 259 show_test(handle);