diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-04-09 02:08:02 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-04-09 02:08:02 +0300 |
commit | 4b42fafc1cdc4aba38d4f147cb2f3f1a32cd4a15 (patch) | |
tree | 7f162d0612f7048dc52a3ba320a6685593100729 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | b318556479cc923970a79d6c2311138581c0db83 (diff) | |
parent | 6c9d9c81924b4b63c7a487e90fddb3b2d0f7d458 (diff) | |
download | linux-4b42fafc1cdc4aba38d4f147cb2f3f1a32cd4a15.tar.xz |
Merge branch 'pm-cpufreq-sched' into pm-cpufreq
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
-rw-r--r-- | tools/perf/util/scripting-engines/trace-event-python.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c index d72fafc1c800..fbd05242b4e5 100644 --- a/tools/perf/util/scripting-engines/trace-event-python.c +++ b/tools/perf/util/scripting-engines/trace-event-python.c @@ -205,6 +205,9 @@ static void define_event_symbols(struct event_format *event, const char *ev_name, struct print_arg *args) { + if (args == NULL) + return; + switch (args->type) { case PRINT_NULL: break; @@ -1091,8 +1094,6 @@ static int python_start_script(const char *script, int argc, const char **argv) goto error; } - free(command_line); - set_table_handlers(tables); if (tables->db_export_mode) { @@ -1101,6 +1102,8 @@ static int python_start_script(const char *script, int argc, const char **argv) goto error; } + free(command_line); + return err; error: Py_Finalize(); |