Re: [PATCH] perf: python: Reference Py_None before returning it

2018-03-22 Thread Arnaldo Carvalho de Melo
Em Thu, Mar 22, 2018 at 10:14:48AM +0100, Jiri Olsa escreveu: > On Thu, Mar 22, 2018 at 12:57:32AM +0100, Petr Machata wrote: > > 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 need

Re: [PATCH] perf: python: Reference Py_None before returning it

2018-03-22 Thread Jiri Olsa
On Thu, Mar 22, 2018 at 12:57:32AM +0100, Petr Machata wrote: > 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 Acked-by: Jiri Olsa

[PATCH] perf: python: Reference Py_None before returning it

2018-03-21 Thread Petr Machata
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 --- tools/perf/util/python.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff