Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp601281pxv; Thu, 15 Jul 2021 11:14:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeumFGSIlov4EVPEn2m7p/H1S34mwIG7Qu7TUcwpiXr1gALoGyajKyh4DNjp5C9F993ueL X-Received: by 2002:a05:6402:d63:: with SMTP id ec35mr8888822edb.347.1626372848282; Thu, 15 Jul 2021 11:14:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626372848; cv=none; d=google.com; s=arc-20160816; b=V8jgKmSjPOh+kUuppvKp5GtuQ60kzbU3eqjBw76tHQxi//Ph7ozBq+L66rfHywndwo 65G8tYX8+TedcfsRR1bz4RaPRbs4HwvsrTp6HZpyXfVy+QonZzMQVHaBiKWLrka8i0Ls bP8kMCT5ZnRebeARubqsLuGOoyuRuk/Qf8vtc6Raz3QpTzx1IQEHwAHLgz9qDtHf8dhu RhYtZIBvck/TWfipseQ0LvT0Pz5oQFp7Um7gPMsbukg/uUcykv+38Dj7FTwiiGTApZnQ Wten8jmILaPg1/Z1tJ+tJpVk5mrZG0tBG4FnESUVKL0Y3RtrByZwsmB+Ic0RqG9YYEuA VdUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=czRWs8lyUh4UdNQjlDrLUKXCeLSMkK3ygdHfrYfKD9s=; b=qn0bAH8YmdliR3DRVVKlBC/yyi1hIZ6d+MAhEve0AJ3yHC9OUxVDdzTDbzaUkxbBGH ZHcqBr/5Aww6e0JzOWu9h5QmcMr/PbaxySac1gyGc93nJAfqmaNUeF2NMi8wT3kLcaai ZmxzJS/vYQZ2l2yqeFpnRtv7jXxXeDmInU+ZK0h20C4KZPg0SqrwNjMeTrKKsA+sf7z9 7lA2eOMz0wSorwyMJA4yH5hI7m5yPevzCZdANAAcPnKcuJJNb7BIbLXoM7EsdOsCmp8M kBGc/9Xc4sP9NNabU/i3yWad3PQaedHZp4NmaPlOCI56WnCmcte/sbgUQ+wOO2gyHSVA U2IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CEgKuQWO; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r19si7984464ejb.192.2021.07.15.11.13.44; Thu, 15 Jul 2021 11:14:08 -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=@gmail.com header.s=20161025 header.b=CEgKuQWO; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231216AbhGOQKu (ORCPT + 99 others); Thu, 15 Jul 2021 12:10:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234064AbhGOQKh (ORCPT ); Thu, 15 Jul 2021 12:10:37 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32FE7C061766; Thu, 15 Jul 2021 09:07:43 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id k4so8452959wrc.8; Thu, 15 Jul 2021 09:07:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=czRWs8lyUh4UdNQjlDrLUKXCeLSMkK3ygdHfrYfKD9s=; b=CEgKuQWO3EHR56h3sCFiXdiY1MMMi7CHDOrSH4yY59wafHyQ7ANPlFRZY405kMrSo3 Kbna4ktV0nySJkIZqXeVZQC4JWpXx2hNpIQGXzr9dY1tY9ZeZwN19NJIZQ1RbaFEqi3J SpiDu6hBm3U6JTbRNUe9gApmug/rigKLTCkS3Ex+iE+LTEIG9oyJd9MGBR5ASexaGYS9 GewDkMGnT4OyJODZqOSsGEXvBZ/wCci4x45XFb1t03HIiIVhMHlhYOyF/to0eWibahb9 k4LFkVfDqqElb8j8uvahQEFOjO4t2yuaGhj++22bjH7lcqD7CL7eYts2Oh/kAiKTKakr ZVgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=czRWs8lyUh4UdNQjlDrLUKXCeLSMkK3ygdHfrYfKD9s=; b=CzoRU57YGhcfEkmNjExRH3dRSSILRbJBYzxH0+fjSn4h7baqC09MUNNfspMtOlsexT q/wEKGikDG4E17/xmSzehSidnmPjrvADAXisjautz4CIIrQJcPE9Vfj5TCPTaF1mxcrv L26m1eRgpLSSOtYaP4qgV+SbeS4qg8BjbKfFR9eFMgbbiQ7IgvJdAo8tCDUvgd3UDGY3 Mhe0r4mHck6CyhKr6MeVYeIUSk7k7WV8XQRLsBsN5xK7I70uA1xLxY0sloZG1zxeUvK2 7T4/C0sfm9k4TIUA19ta1nGFgjBR8rJyyFDq0027LAqNegYtBewBBVt6Rn/PEcXYk3jA mJeA== X-Gm-Message-State: AOAM532zgDbRdH5yHzPulhes/DJ+XpGcNIChZ47RTl3eykEQzQppqAO4 mF6hrZffNoiMNCQ7nia/Uwg= X-Received: by 2002:adf:e488:: with SMTP id i8mr6625552wrm.285.1626365261728; Thu, 15 Jul 2021 09:07:41 -0700 (PDT) Received: from honeypot.lan ([2001:b07:6456:fd99:ced0:db1c:53e1:191e]) by smtp.googlemail.com with ESMTPSA id k13sm7446952wrp.34.2021.07.15.09.07.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jul 2021 09:07:41 -0700 (PDT) From: Riccardo Mancini To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Namhyung Kim , Peter Zijlstra , Ingo Molnar , Mark Rutland , Jiri Olsa , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Riccardo Mancini Subject: [PATCH 12/20] perf script: release zstd data Date: Thu, 15 Jul 2021 18:07:17 +0200 Message-Id: <39388e8cc2f85ca219ea18697a17b7bd8f74b693.1626343282.git.rickyman7@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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