File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -5339,6 +5339,8 @@ static void trace__exit(struct trace *trace)
5339
5339
zfree (& trace -> syscalls .table );
5340
5340
}
5341
5341
zfree (& trace -> perfconfig_events );
5342
+ evlist__delete (trace -> evlist );
5343
+ trace -> evlist = NULL ;
5342
5344
#ifdef HAVE_LIBBPF_SUPPORT
5343
5345
btf__free (trace -> btf );
5344
5346
trace -> btf = NULL ;
@@ -5719,8 +5721,10 @@ int cmd_trace(int argc, const char **argv)
5719
5721
}
5720
5722
}
5721
5723
5722
- if ((argc >= 1 ) && (strcmp (argv [0 ], "record" ) == 0 ))
5723
- return trace__record (& trace , argc - 1 , & argv [1 ]);
5724
+ if ((argc >= 1 ) && (strcmp (argv [0 ], "record" ) == 0 )) {
5725
+ err = trace__record (& trace , argc - 1 , & argv [1 ]);
5726
+ goto out ;
5727
+ }
5724
5728
5725
5729
/* Using just --errno-summary will trigger --summary */
5726
5730
if (trace .errno_summary && !trace .summary && !trace .summary_only )
You can’t perform that action at this time.
0 commit comments