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 74A8FA0353; Fri, 25 Feb 2022 02:00:49 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3D9F740688; Fri, 25 Feb 2022 02:00:49 +0100 (CET) Received: from smtp.tom.com (smtprz14.163.net [106.3.154.247]) by mails.dpdk.org (Postfix) with ESMTP id DD63740141 for ; Fri, 25 Feb 2022 02:00:47 +0100 (CET) Received: from my-app01.tom.com (my-app01.tom.com [127.0.0.1]) by freemail01.tom.com (Postfix) with ESMTP id 7C1131E8C0A7 for ; Fri, 25 Feb 2022 09:00:46 +0800 (CST) Received: from my-app01.tom.com (HELO smtp.tom.com) ([127.0.0.1]) by my-app01 (TOM SMTP Server) with SMTP ID 1370085283 for ; Fri, 25 Feb 2022 09:00:46 +0800 (CST) Received: from antispam3.tom.com (unknown [172.25.16.54]) by freemail01.tom.com (Postfix) with ESMTP id 6C1DB1E86F1A for ; Fri, 25 Feb 2022 09:00:46 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tom.com; s=201807; t=1645750846; bh=Ga35jPtp9+YnrvtiQ+hjZ6ucD6REZh5oXfc2YpAhfiU=; h=From:To:Subject:Date:From; b=X2C+Jq6yjAe5AnDf937iq3UDnk+x/due7Lkpn9IuwDPZlWiJFJjut/DSqo05VuffI qkAaF4nEYkXuEm1cN9DgpFsJw+VS5LQocZdnpFmvOQxwTrjwDeWuf2eithgcHBPkzs ueq5xNF8v0I5OqzkIdI1cgB5FHiZJX9YsffQ+aNY= Received: from antispam3.tom.com (antispam3.tom.com [127.0.0.1]) by antispam3.tom.com (Postfix) with ESMTP id 3637D9C1B6D for ; Fri, 25 Feb 2022 09:00:46 +0800 (CST) X-Virus-Scanned: Debian amavisd-new at antispam3.tom.com Received: from antispam3.tom.com ([127.0.0.1]) by antispam3.tom.com (antispam3.tom.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1qR3w3IE_cMo for ; Fri, 25 Feb 2022 09:00:45 +0800 (CST) Received: from haizhi-vm.localdomain (unknown [113.88.15.206]) by antispam3.tom.com (Postfix) with ESMTPA id 5D4EB9C1B6A for ; Fri, 25 Feb 2022 09:00:45 +0800 (CST) From: Tianli Lai To: dev@dpdk.org Subject: [PATCH] app/pdump: free mempool at cleanup resources Date: Fri, 25 Feb 2022 09:00:37 +0800 Message-Id: <1645750837-3700-1-git-send-email-laitianli@tom.com> X-Mailer: git-send-email 1.8.3.1 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 the mempool should be free when cleanup resources. Signed-off-by: Tianli Lai --- app/pdump/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/pdump/main.c b/app/pdump/main.c index 04a38e8..3fe17ea 100644 --- a/app/pdump/main.c +++ b/app/pdump/main.c @@ -507,6 +507,7 @@ struct parse_val { /* free the rings */ rte_ring_free(pt->rx_ring); rte_ring_free(pt->tx_ring); + rte_mempool_free(pt->mp); } } -- 1.8.3.1