diff options
| -rw-r--r-- | tools/perf/util/scripting-engines/trace-event-python.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c index 8b2eb6dbff4d..bc32e57d17be 100644 --- a/tools/perf/util/scripting-engines/trace-event-python.c +++ b/tools/perf/util/scripting-engines/trace-event-python.c | |||
| @@ -908,14 +908,11 @@ static void python_process_tracepoint(struct perf_sample *sample, | |||
| 908 | if (_PyTuple_Resize(&t, n) == -1) | 908 | if (_PyTuple_Resize(&t, n) == -1) |
| 909 | Py_FatalError("error resizing Python tuple"); | 909 | Py_FatalError("error resizing Python tuple"); |
| 910 | 910 | ||
| 911 | if (!dict) { | 911 | if (!dict) |
| 912 | call_object(handler, t, handler_name); | 912 | call_object(handler, t, handler_name); |
| 913 | } else { | 913 | else |
| 914 | call_object(handler, t, default_handler_name); | 914 | call_object(handler, t, default_handler_name); |
| 915 | Py_DECREF(dict); | ||
| 916 | } | ||
| 917 | 915 | ||
| 918 | Py_XDECREF(all_entries_dict); | ||
| 919 | Py_DECREF(t); | 916 | Py_DECREF(t); |
| 920 | } | 917 | } |
| 921 | 918 | ||
| @@ -1235,7 +1232,6 @@ static void python_process_general_event(struct perf_sample *sample, | |||
| 1235 | 1232 | ||
| 1236 | call_object(handler, t, handler_name); | 1233 | call_object(handler, t, handler_name); |
| 1237 | 1234 | ||
| 1238 | Py_DECREF(dict); | ||
| 1239 | Py_DECREF(t); | 1235 | Py_DECREF(t); |
| 1240 | } | 1236 | } |
| 1241 | 1237 | ||
