diff options
author | Petr Machata <[email protected]> | 2018-03-22 00:57:32 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2018-03-23 16:45:20 -0300 |
commit | 83428f2fad48e16fddff0cb445cb4fedf5afe4ab (patch) | |
tree | addf1890e855ad68222a8eb2111c6867581cc640 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 751b1783da784299b0509adb6a9cd3024cc4f837 (diff) |
perf python: Reference Py_None before returning it
Python None objects are handled just like all the other objects with
respect to their reference counting. Before returning Py_None, its
reference count thus needs to be bumped.
Signed-off-by: Petr Machata <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Petr Machata <[email protected]>
Link: http://lkml.kernel.org/r/b1e565ecccf68064d8d54f37db5d028dda8fa522.1521675563.git.petrm@mellanox.com
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions