From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755764Ab3AYCqQ (ORCPT ); Thu, 24 Jan 2013 21:46:16 -0500 Received: from mail-yh0-f49.google.com ([209.85.213.49]:50062 "EHLO mail-yh0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753389Ab3AYCqG (ORCPT ); Thu, 24 Jan 2013 21:46:06 -0500 Date: Thu, 24 Jan 2013 23:45:58 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Peter Zijlstra , Paul Mackerras , Ingo Molnar , LKML , Namhyung Kim , Stephane Eranian Subject: Re: [PATCH] perf evsel: Fix memory leaks on evsel->counts Message-ID: <20130125024558.GF1954@ghostprotocols.net> References: <1359078284-32080-1-git-send-email-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1359078284-32080-1-git-send-email-namhyung@kernel.org> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, Jan 25, 2013 at 10:44:44AM +0900, Namhyung Kim escreveu: > From: Namhyung Kim > > The ->counts field was never freed in the current code. Add > perf_evsel__free_counts() function to free it properly. I still haven't applied Stephane's patches, that his one depends on, will do it tomorrow. - Arnaldo