From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id A344F1B783 for ; Wed, 7 Feb 2018 10:00:12 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id F110420C3C; Wed, 7 Feb 2018 04:00:11 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Wed, 07 Feb 2018 04:00:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=gkDgdVZZxnAnCxMw7 HJIrp8JZs4647+AqSW5614Nbys=; b=hpTsDGcJrS1E3PzPlH+slxiPPKUl+WxbA sWgWxyVeO6eDHcNLWcMkNDv2Lcq+eqiou28U/xnqoUFy2Cw03f4AuiOwP2i3rs3J GNkEyRSj3FBkZr2Zu6tb71ns2oi5tpbI2QLw5raP56e8WRqyZZf9buYao/09lk9y 62UgUiOtK+ZRkXXjLlGIwYJGmFyAlD5rZBdvs4jOEYrP1CHgaiZ4EIGV3yFksoAW ozxn1wIdlr/AB1FqCHoo/30khk+jAB+mSAIimKpW+lHIVEgU3FxypR0rJrQ9nFPv HcUx+8vTX/mzKcaQy0EIRbMkIlNt1pp6gP+wjJRGwLfc9HTYNfvNQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=gkDgdVZZxnAnCxMw7HJIrp8JZs4647+AqSW5614Nbys=; b=ew/LJQ0i pR2VECGlSK4CSOPVlo1RnYznthi8pClxcWUd35/kz526KVamxteG5f/XrUn3WRju 3VNf7IS7z/+6KIT0DrXVSjjhoRPjpYVS1LJ9MkpdrBVXD+t4PE5a5Xor/NCn0nPH WMSZPhV8vSv+M2AvTGXD4AjWlfTkja4BvlH+xFGF0/2qfzILPKpFwitJOJ29LHQc IP9JbV+HaNLEfYDrmbFFADm2tuC3HMZjWOptgMj7PAqO1jlF41JUagCI5WFlYE+f 18hp2wXjGHcdU1SfXfkhEgkILThq4fHVZUxfCwMs7C45EeKzzmMJeK5OzIaQrIuS KpZZMsenHeXMXg== X-ME-Sender: Received: from localhost.localdomain (unknown [182.84.161.100]) by mail.messagingengine.com (Postfix) with ESMTPA id 780D124636; Wed, 7 Feb 2018 04:00:10 -0500 (EST) From: Yuanhan Liu To: Anatoly Burakov Cc: dpdk stable Date: Wed, 7 Feb 2018 16:57:13 +0800 Message-Id: <1517993838-26692-19-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517993838-26692-1-git-send-email-yliu@fridaylinux.org> References: <1517993838-26692-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'test/reorder: fix memory leak' has been queued to LTS release 17.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Feb 2018 09:00:12 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/09/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 4c1392ec6d52070ca61dbc1e1f62ae622ff93903 Mon Sep 17 00:00:00 2001 From: Anatoly Burakov Date: Tue, 6 Feb 2018 13:35:38 +0000 Subject: [PATCH] test/reorder: fix memory leak [ upstream commit 8d0e39debc2eaaf684d78d222152b34f08a325b5 ] Add a teardown function that frees allocated resources. Fixes: d0c9b58d7156 ("app/test: new reorder unit test") Signed-off-by: Anatoly Burakov --- test/test/test_reorder.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/test/test_reorder.c b/test/test/test_reorder.c index 4ec22ac..429f6eb4 100644 --- a/test/test/test_reorder.c +++ b/test/test/test_reorder.c @@ -360,9 +360,20 @@ test_setup(void) return 0; } +static void +test_teardown(void) +{ + rte_reorder_free(test_params->b); + test_params->b = NULL; + rte_mempool_free(test_params->p); + test_params->p = NULL; +} + + static struct unit_test_suite reorder_test_suite = { .setup = test_setup, + .teardown = test_teardown, .suite_name = "Reorder Unit Test Suite", .unit_test_cases = { TEST_CASE(test_reorder_create), -- 2.7.4