From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D86C6A0552; Fri, 21 Oct 2022 00:18:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 80253410FC; Fri, 21 Oct 2022 00:18:44 +0200 (CEST) Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by mails.dpdk.org (Postfix) with ESMTP id 9B2B340F18 for ; Fri, 21 Oct 2022 00:18:43 +0200 (CEST) Received: by mail-pf1-f172.google.com with SMTP id p14so835593pfq.5 for ; Thu, 20 Oct 2022 15:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0uG+aMkfFqnj3fglCkv1W0gjFz5CDkmxFaBvnJkeTHc=; b=pJ2bEldN6hoUfff4DsQjCEkD2izHyHXdt0IG9fB5HqZYDJEluu0jyi87yKwhTMcL0l fVf6G2eoOR4rhiXbtiyKWREvp9j4kUQiNx6MQSHv1zLCjHeYh0s6kOzbGJ0lBcUF215P 5xcmw9yvqVDMyUrf30qzLIRYge6FAk9HtqMA1C5L8V53ry166TeW1JwZUHovLPdpMQ0I cz7BPIbmM3XZHcXzTiFWTNdltIJ7oQ2UVtq6PYw8WySMO8vFDjZmkjW9HqfFwgoeKjRA 0liVT36HIEywc++DJCUQZF83U3HY9u+bcmUGOpec+rR2zvBjRMbpa4nJ0SXCaqY5mCDm QWeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0uG+aMkfFqnj3fglCkv1W0gjFz5CDkmxFaBvnJkeTHc=; b=3wlJTOBBGDML0Bs1+24M4QA4NAYksGh6WfinChImtxNS79dkaEyY68N324dqbQVtoA 1Tk4KiuLomOKgCL4tfCJJspV7UI0ELeE1RiPPc1q+w+lUziq4zigIJDGInWogwZwdHI9 USGPnNyUg2e/xBJmyqCsCbtoDIrqXU5Z62udV1E1E57t/uYCLbaDtA+9KpE2Kxs2QWjb vG6EAnl9xZoI2BPVEWncBDL6kTIgBBHcP1glgaNYJWJ6Tn+smNCAV09+RT67JUZ5QgTj bN3P88SlJaFQuQW77j3Vvp5x8bsDokePzyN5+fJQiSERclFzGFsncqrlwo6vlXUsP9TC mwIQ== X-Gm-Message-State: ACrzQf38lsmU1Q7ECDl9HyBKrvBbvCyGA7xr8rzln3jZEy7Wd3uABUjQ AaMskeLAjnv8A6/8I/Tn7VKpeIxEHRefFw== X-Google-Smtp-Source: AMsMyM7urF3nHSSef/5PWsk4IVUo6k4ABbiPOb4ce3zp1iX3ZiMA80Vqnv5ymF5lBg5DD90SGljI5w== X-Received: by 2002:a05:6a02:10e:b0:43b:e57d:2bfa with SMTP id bg14-20020a056a02010e00b0043be57d2bfamr13231888pgb.263.1666304322580; Thu, 20 Oct 2022 15:18:42 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id s1-20020a170902ea0100b001769206a766sm13386392plg.307.2022.10.20.15.18.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 15:18:42 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH] dumpcap: remove bogus rte_free() Date: Thu, 20 Oct 2022 15:18:40 -0700 Message-Id: <20221020221840.305941-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org At end of program there is call to rte_free() which is passing a bogus value. There is no "bpf_filter" defined in this application; it ends up being a text address inside pcap library. Fixes: cbb44143be74 ("app/dumpcap: add new packet capture application") Signed-off-by: Stephen Hemminger --- app/dumpcap/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dumpcap/main.c b/app/dumpcap/main.c index e0a3477d912f..e49558c2534a 100644 --- a/app/dumpcap/main.c +++ b/app/dumpcap/main.c @@ -849,7 +849,7 @@ int main(int argc, char **argv) pcap_dump_close(out.dumper); cleanup_pdump_resources(); - rte_free(bpf_filter); + rte_ring_free(r); rte_mempool_free(mp); -- 2.35.1