Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp684042pxv; Thu, 15 Jul 2021 13:24:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfBgtisO24VePk7XWnHMWauM7Auxj1wRZj4XioB8wPwE/k31khZvncM8/LJ2Sc1cnKKhom X-Received: by 2002:a02:94af:: with SMTP id x44mr5625431jah.79.1626380671590; Thu, 15 Jul 2021 13:24:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626380671; cv=none; d=google.com; s=arc-20160816; b=isQtvR9FgPpTHGynMhzw+O/R6vlQZLFzUEMZo0tNsyYFBrJOwJJ3745mVI3Kk5yWpl d2281TIn9wMVz/n3APjZ3QYJi7kSR4zvNuMGVuCsuylyTHh8yWUxOI/NcyKHxp41n5Zy Z4NPxUZOXcvz9nP0YmRiwTVFTswmWMPmJu7AqO8k7xfV8x13L+gTwmD6ToIXsqN4kjU5 p1NY6qddvyRxcGsPWW5iF9hLqV10tjgGZSIM4RP1yApHcfIvffZp3TuSVOlwGJURce6Z V9AuejE2HBy8eFtYUaRxxzPyNA2y0g8yKfHgy/0Q3DGncG0qDDk/dUVFiVWkk6fFn5FE SOGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PCwXAkuH0+RpqeBo/5ON11zNuedfpfc3CxrSq4qIono=; b=Mzi1zkAmnwGbjxFvhjsDL7ltWGdQn14r3TGFJP/axU9cp5pgF3KVVgDPB2HUKDkdnF BeQ5Cj0i1HyYa6WLUdIIW8jHiI2CNRYGcytU9Ho6tdXvlCXN9nzpapvnGoQXWcHPcy7m TtMKr0p0kEwJyadQmdMCmcnCNt/g2MRGk1wtTTbYjTDxp4vuTUoMcwXnbbo3B4xD4u0V L9Eytqj9ljSGLttPX1uum9BrkVzODeMvx8ksP8XkNn3j+XOsW1/ZWp1oiwavqL6vauu8 MDSAxjnA5fl3TJZhH9wLAJdn3MYWL2rb8YIZYiFlNDCN91EM/ThkPQSu5L3CArYadDcN R8BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J6ZWywj6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d131si10079773iog.11.2021.07.15.13.24.16; Thu, 15 Jul 2021 13:24:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J6ZWywj6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230141AbhGOU0M (ORCPT + 99 others); Thu, 15 Jul 2021 16:26:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:57166 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbhGOU0L (ORCPT ); Thu, 15 Jul 2021 16:26:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DF5D0613D3; Thu, 15 Jul 2021 20:23:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626380598; bh=NAA3pvCu1mpUmxXH7m15oH4LrJfZEDDX9RdjpZ4Ql6E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J6ZWywj6Y87TtNVIvsZqXPqCIjkQXrtmVJfXJNWPNb04arBOYMHZa7C2Ub9RBniyY eS3DdAnuBaaiSf+8Z0rt3SYlv13mHnuxLN2zLCXrsBLJmVsF/9Mbm4e6Wp6IRKptIq ay4h1KB1X0/IKVw5Lyfry/vTbZnUyC+n9XCP9vaA1uzsrjJh0lPS8fQ+MeNed/ro3d GHkXawmIFM4ORVHHJQAJcMMzwU7LeKZ1rh8OCksowQ2iF08oQrU+af83P1/8bdMkKG ydpYnaf9JBhqTmAtqekFTWi9H/mh1Ba5qYFzRz7/OaKh0mwbec4iYA6FIfXmvBU9Rk LXWHSU2LAoaDQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 55306403F2; Thu, 15 Jul 2021 17:23:15 -0300 (-03) Date: Thu, 15 Jul 2021 17:23:15 -0300 From: Arnaldo Carvalho de Melo To: Riccardo Mancini Cc: Milian Wolff , Ian Rogers , Namhyung Kim , Peter Zijlstra , Ingo Molnar , Mark Rutland , Jiri Olsa , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH 12/20] perf script: release zstd data Message-ID: References: <39388e8cc2f85ca219ea18697a17b7bd8f74b693.1626343282.git.rickyman7@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <39388e8cc2f85ca219ea18697a17b7bd8f74b693.1626343282.git.rickyman7@gmail.com> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, Jul 15, 2021 at 06:07:17PM +0200, Riccardo Mancini escreveu: > ASan reports several memory leak while running the perf test > "82: Use vfs_getname probe to get syscall args filenames". > One of the leaks is caused by zstd data not being released on exit in > perf-script. > > This patch adds the missing zstd_fini. Fixes: b13b04d9382113f7 ("perf script: Initialize zstd_data") Thanks, applied. - Arnaldo > Signed-off-by: Riccardo Mancini > --- > tools/perf/builtin-script.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c > index 8c03a9862872d495..bae0e5b72c0e6050 100644 > --- a/tools/perf/builtin-script.c > +++ b/tools/perf/builtin-script.c > @@ -4143,6 +4143,7 @@ int cmd_script(int argc, const char **argv) > zfree(&script.ptime_range); > } > > + zstd_fini(&(session->zstd_data)); > evlist__free_stats(session->evlist); > perf_session__delete(session); > > -- > 2.31.1 > -- - Arnaldo