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 B829A41B86 for ; Tue, 31 Jan 2023 03:52:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 961FC40EF0; Tue, 31 Jan 2023 03:52:46 +0100 (CET) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id 49FE740DFB; Tue, 31 Jan 2023 03:52:45 +0100 (CET) Received: from kwepemi500020.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4P5V182z7qzJs50; Tue, 31 Jan 2023 10:51:08 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by kwepemi500020.china.huawei.com (7.221.188.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 31 Jan 2023 10:52:42 +0800 From: Jie Hai To: CC: , , , Subject: [PATCH] test/mbuf: fix mbuf_autotest retest fail Date: Tue, 31 Jan 2023 10:48:51 +0800 Message-ID: <20230131024851.11121-1-haijie1@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemi500020.china.huawei.com (7.221.188.8) X-CFilter-Loop: Reflected X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Retest "mbuf_autotest" will fail because the mbuf pool was not freed after previous test successful done. This patch fixes it. Fixes: efc6f9104c80 ("mbuf: fix reset on mbuf free") Cc: stable@dpdk.org Signed-off-by: Jie Hai --- app/test/test_mbuf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test/test_mbuf.c b/app/test/test_mbuf.c index 53fe898a384c..6cbb03b0afaa 100644 --- a/app/test/test_mbuf.c +++ b/app/test/test_mbuf.c @@ -2764,6 +2764,7 @@ test_nb_segs_and_next_reset(void) m2->nb_segs != 1 || m2->next != NULL) GOTO_FAIL("nb_segs or next was not reset properly"); + rte_mempool_free(pool); return 0; fail: -- 2.30.0