|
@@ -908,14 +908,11 @@ static void python_process_tracepoint(struct perf_sample *sample,
|
|
|
if (_PyTuple_Resize(&t, n) == -1)
|
|
|
Py_FatalError("error resizing Python tuple");
|
|
|
|
|
|
- if (!dict) {
|
|
|
+ if (!dict)
|
|
|
call_object(handler, t, handler_name);
|
|
|
- } else {
|
|
|
+ else
|
|
|
call_object(handler, t, default_handler_name);
|
|
|
- Py_DECREF(dict);
|
|
|
- }
|
|
|
|
|
|
- Py_XDECREF(all_entries_dict);
|
|
|
Py_DECREF(t);
|
|
|
}
|
|
|
|
|
@@ -1235,7 +1232,6 @@ static void python_process_general_event(struct perf_sample *sample,
|
|
|
|
|
|
call_object(handler, t, handler_name);
|
|
|
|
|
|
- Py_DECREF(dict);
|
|
|
Py_DECREF(t);
|
|
|
}
|
|
|
|