Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp545021pxv; Thu, 15 Jul 2021 09:56:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwN71bIzmcHxZ0A7cQfpa9IKqf20pyknSX3kCME/q9FreFvA3Ma3sFy7/p70K0umyVa1H39 X-Received: by 2002:a6b:1497:: with SMTP id 145mr3886344iou.128.1626368171635; Thu, 15 Jul 2021 09:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626368171; cv=none; d=google.com; s=arc-20160816; b=MQhvkNK6T6jW2v/lJIi9r965TFNEkvB7zUHP9KiCgD4d/G4Fk1Aj0ICrH44HlbWws4 UvXffx5D902U38j8VmKIEgo60hUjMih1qMrfZQmZ3snvlQh6RSr/e5QoN0R+kMCT06Dt T6PUqUeJ2n+ats4GgDGE7rXqJanoo/8+j4RVn3dE2pYsmzVOKuoVSDUDPPdNLGc2hKTx 3MZSFWNYzKyuDYrE/uE6eU76KNgph1Weyc72E2cn6YkkehSTyrBeIxs5sw+yCfGi7pBH a1XYaO4N8wl0QLUF6B6fcry+CciesJN46OU2CveaWryRbLBD+4Fcq/tkS0OPTiCfTKvJ yESw== 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=cghIzfQ97dtrU/lUURxCb3TGIcHuXKBKq9tDNHZZFSs=; b=ENH4977tPMSfESK848v7vZLL0teMMjjitF4PrMvxXIOJht9YHCZyEvKyOCsxNFbas0 Huzvr0DFouURg/Lpo2/l2YnrmZdM3bktEFn0SpTFW1S4MUnIgMQREZqVxo7uMOzWExkm qT60GYr3GppA9+BWC3wQvYpyPzwmxhi5xBUkDZyM7m+pZx3ljx4bbrmGPVVLqvrWn+j2 KpKldEHF01tEV6TJ7+jflJpr/gAB3+sMUd4UxqjZeT6EDIeehGHECtMLtO/McbyKzSWp 82mEaFsdcnouPLTK/Jhz7CcVt/oijlkaiJA67I407TLTORNxPLCsrAAXrlP4gj2gDXxR zTLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LStyBDuB; 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 o14si9134600ilj.24.2021.07.15.09.55.59; Thu, 15 Jul 2021 09:56:11 -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=LStyBDuB; 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 S236241AbhGOQLM (ORCPT + 99 others); Thu, 15 Jul 2021 12:11:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234769AbhGOQKo (ORCPT ); Thu, 15 Jul 2021 12:10:44 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79118C06175F; Thu, 15 Jul 2021 09:07:50 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id l18-20020a1ced120000b029014c1adff1edso6378406wmh.4; Thu, 15 Jul 2021 09:07:50 -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=cghIzfQ97dtrU/lUURxCb3TGIcHuXKBKq9tDNHZZFSs=; b=LStyBDuBZifMQihbkJHWh6AoplTJGPdEY2z7yiT5vzNO9de49m1Uk+nlrZVwSAvr8C cNyOo6yw8cOwEQLnvMGtVoIX03k64Nh+vpPFRCmtCyq3LZjZix4gr5dlD1K96PDj3cgO ZgSbhB8iybKc1xiVX1hjFNyk5HdXklgY2RLv7rl0Kb30cPxXynY6byHsRLl7b1l953gf MtQrPi3/z94rsbJclrrtvSJ7KXGYuVZSDH9n5EG/D3xNZDtuZvJ09NreaFPWFA7I9Ezs y+v7a/VEgPum+UfYNiNq5BarAMSkprYch8WpaWQKWXDqPM5aZeivlcN2RNi7Zs0pTP4o SxWw== 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=cghIzfQ97dtrU/lUURxCb3TGIcHuXKBKq9tDNHZZFSs=; b=q6t3hpU65P60whPaMa35TvC0/a4dzqX6CYq4z7heyzNCFIKcZGsnYMmvLNN4p7XRlY 6t+tIiOU0WeIl9xhhYkh4PuYFV4gTEcMFuGlEEm1jymMk/yUbmwPfGRHSMMncdH3uC2T j3p3KeL9AfftMdLuK34NHP3CFhtEDm1ygitku22EebRpaAMxCrRkBIc20qjCq693cxre VDIbdMF5p6Jwey3a26LdyIPvPOuXYJT+Q3b6Iql9/PtpiVGbX+m2o1liyaOABUYB5LGo T7BZ8BWyeMDm5NC1jjd7i+ThT1yTDepEuqHyv+8G5c5hLzytfKREv0ThTbuJaqmti21A KVDw== X-Gm-Message-State: AOAM533vUZjo9xBbGnNKWnlTy9II28rqUmNuIO1xWNaRieHfZ9gz7i3n OFaDafjLN8wMtiuqLHS1siM= X-Received: by 2002:a05:600c:20b:: with SMTP id 11mr11825748wmi.112.1626365269073; Thu, 15 Jul 2021 09:07:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jul 2021 09:07:48 -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 19/20] perf test: bpf: free obj_buf Date: Thu, 15 Jul 2021 18:07:24 +0200 Message-Id: <60f3ca935fe6672e7e866276ce6264c9e26e4c87.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 some memory leaks when running the perf test "42: BPF filter". The first of these leaks is caused by obj_buf never being deallocated in __test__bpf. This patch adds the missing free. Signed-off-by: Riccardo Mancini --- tools/perf/tests/bpf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/tests/bpf.c b/tools/perf/tests/bpf.c index 33bda9c265423547..2cda4a6297e07967 100644 --- a/tools/perf/tests/bpf.c +++ b/tools/perf/tests/bpf.c @@ -276,6 +276,7 @@ static int __test__bpf(int idx) } out: + free(obj_buf); bpf__clear(); return ret; } -- 2.31.1