From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753242AbeCVJgK (ORCPT ); Thu, 22 Mar 2018 05:36:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:35484 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751817AbeCVJgI (ORCPT ); Thu, 22 Mar 2018 05:36:08 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5DA1D20838 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=acme@kernel.org Date: Thu, 22 Mar 2018 06:35:59 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: Petr Machata , linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Alexander Shishkin , Namhyung Kim Subject: Re: [PATCH] perf: python: Reference Py_None before returning it Message-ID: <20180322093559.GB4229@kernel.org> References: <20180322091448.GA2972@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180322091448.GA2972@krava> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > Acked-by: Jiri Olsa Thanks, applied. - Arnaldo