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

From: Arnaldo Carvalho de Melo
Date: Thu Mar 22 2018 - 05:36:13 EST


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 needs to be bumped.
> >
> > Signed-off-by: Petr Machata <petrm@xxxxxxxxxxxx>
>
> Acked-by: Jiri Olsa <jolsa@xxxxxxxxxx>

Thanks, applied.

- Arnaldo