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 ED56CA034F for ; Wed, 10 Nov 2021 07:55:01 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E695740142; Wed, 10 Nov 2021 07:55:01 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2056.outbound.protection.outlook.com [40.107.96.56]) by mails.dpdk.org (Postfix) with ESMTP id B8AF140142 for ; Wed, 10 Nov 2021 07:55:00 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=itte0Hjo39klvlEuzYqeB6b1T17toSs+cXJyqMdUHFxGT/PLQnGtRn4CJn4J1TsFfNPmJxzVla90rWbRTl7JQe9YcRcdEw3U/RD1asMnk3FhPtn83nBVK9GGJIV7IdIWm1x0E+/pVHpN/SfK3x6nfa1C22KwnUmo0QQCXVIyEX4L5zLVXj9Uo5pZPOZmNvhNuZCOdQxgyaAeLT9THGi6Cj+npmk3JzvIEyCcbx/zABiByk6sKZ1qBKOb/ozYRQqY4mjtw+WeFzbbwqKBqKQQGTQ0twngc3jRJrvdkUAeEtGikQ9X7juitAvpmclO5SBYcAfK4fqb43dyBVVTL6iPqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=u6oyTrDQKKn7EpAMoOeIqRnOXLFL9amR1x8GVwzamhU=; b=V9gl0ESf9CUGYyf5jXVgciICkmOlsBtFIwIw+FD2KDTwEkB3V4iJxO0AzsgqeatKmQCheMuDODclmy/sfVqYpbVjzB+vcLYWdlMBQK+sRif26TDHvSBBJrsEygKdvvDlItS0VWnbz/QBSeH/B8wlLRpsZRnP4hc+m6TXyO0+eZEzpgg3z7cNX1aD+QSHPxlPRivPFV9EaOGHVNs4AJpSAPrt288CFqU4f6I+mem+nexDuCv6Qc1GS2nN48oIR2/a74hYP6IfcbHuk0Rg06br1kdhKGmimzIzpOETmhH7cW0WsLoDCezQ5JbuZMEjbuWRu25BeDuNKae0nnpvniW5kA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=6wind.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u6oyTrDQKKn7EpAMoOeIqRnOXLFL9amR1x8GVwzamhU=; b=cQYt1od1dyQBNRr86eWmNWDwbQ7Pvnfyx95Y0iMqTJwtf6BuF9JflGDBrxe4r/o9udxRlkJqfJAhmCmMBZmeVNCofnkYVomKzbShQC2U6OpCWe4vx91FuKe+A7Tmw+ZfVgi18vtmOKMVjBVnxMtWb/nbQwCAvSRHat3GeHhi5l6A5iVJ+3L/hXJwLpb5i1FWAzN5eO1tgutgMVs+Gu9aR+wka5z+rNZG/M82QCv2e29+szzrcPBhqjXO56DGWJ57DhyblMDzffq3rznJGVyiP5jpZgEo8aMCkQ2cwLATPy/GQhDtlChUwddZzbfwuZqKZ+q0HGdZ/jeNkVfQHtkhTA== Received: from DS7PR03CA0023.namprd03.prod.outlook.com (2603:10b6:5:3b8::28) by CH2PR12MB4873.namprd12.prod.outlook.com (2603:10b6:610:63::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.13; Wed, 10 Nov 2021 06:54:58 +0000 Received: from DM6NAM11FT017.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b8:cafe::5b) by DS7PR03CA0023.outlook.office365.com (2603:10b6:5:3b8::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11 via Frontend Transport; Wed, 10 Nov 2021 06:54:58 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT017.mail.protection.outlook.com (10.13.172.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4669.10 via Frontend Transport; Wed, 10 Nov 2021 06:54:57 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 10 Nov 2021 06:54:55 +0000 From: Xueming Li To: David Marchand CC: Luca Boccassi , Olivier Matz , dpdk stable Date: Wed, 10 Nov 2021 14:31:28 +0800 Message-ID: <20211110063216.2744012-205-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211110063216.2744012-1-xuemingl@nvidia.com> References: <20211110063216.2744012-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 41ae162f-7338-4d6e-9d77-08d9a4170210 X-MS-TrafficTypeDiagnostic: CH2PR12MB4873: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EZ7K7yp81eFNUoLJ8HHEDEJJIUWXm7ryvqmOdO1gmqR/7r9rSCDGg4QNZjrSrV5ixiUPh6pSxfhtZ42MrOREq+1A6InoPIVN/QJOkV7tl4TL26XcOcC/ac8RYu8s5Jz9cauqGmEDlRgExCkr7NClkvwulHZ1g8msOyO7P3yXmCUHcV2XTwjKcOGq0gj+u7X3nK9A+ItlbtVyPMtlWEL6ZBrcctzyanDblrbGiJk/kEgUJC0QY9XzsnQ+7Qq9oI/uCury0NB2T7SwGkwZ2QVL15M+BGWHHZzLeb/J9O6pAahsI3Jfrqfp1J/JCXvQvnrrbgoEnCBeqz+mJgw8psBm3bHMb7FCY45lWwdFvaa5qcITwPrEzRrtV0beD/Okdym6pAMp99Hths/ZxVVDpGBKtUCnkAB2a7bXn8ebZa9pSBPtB7CgJrmtNCcmzaMy1bPAp3AsfGJvH5nTP9JLVf2qa0/Hb4LSCyGHSEnt2zYLMpD7Hf65aUw0RjgO6H5PdklZNSRAhFYpKA58Scvo6UiXgZawq3wyXAJ6oLG1osEKKZ7aSv60Z/pFrG9QJW2OLUwO8U7vK6kMMR9hS6Q4XwyEGU7+XtnwWmWrfaO42TMzdRTZm/0NyW8zeJPwV6OIYdEsEZPOqR7Nfxfk1dtEdTguK74U2cT+LfJDdnU3uscOOwOTJdI9MZXCfkYaP3IQM2+qBJr0/XW1oK0c0qG5+ZpK9KVqoxQECpt9uuK80uyBS4GlJYTcVU2rOHYfXXdsqjfULKUVdJYDmO1mIek6NCkhGsW7MC2Az/JxjpDz0BWM2RF35KOa5pfpFz9vRQHstR5/IM6+G45Lq+rQFfRKwN9j6g== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(356005)(6916009)(426003)(508600001)(36860700001)(2906002)(53546011)(86362001)(7696005)(2616005)(6286002)(47076005)(6666004)(8936002)(316002)(70206006)(336012)(36756003)(26005)(8676002)(4326008)(186003)(82310400003)(70586007)(54906003)(16526019)(4001150100001)(5660300002)(1076003)(7636003)(966005)(55016002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 06:54:57.4222 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 41ae162f-7338-4d6e-9d77-08d9a4170210 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT017.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4873 Subject: [dpdk-stable] patch 'test/cmdline: fix memory leak' has been queued to stable release 20.11.4 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 Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/12/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/e8a4c7a8d07eb7ec0a3e543ce99c8a1d09b8ac2a Thanks. Xueming Li --- >From e8a4c7a8d07eb7ec0a3e543ce99c8a1d09b8ac2a Mon Sep 17 00:00:00 2001 From: David Marchand Date: Fri, 29 Oct 2021 13:23:15 +0200 Subject: [PATCH] test/cmdline: fix memory leak Cc: Xueming Li [ upstream commit 86e361cdeb495c70a154f25cd47fd6581c9aff89 ] Previous change wrongly removed cmdline_free(). Fixes: 6ad06203a587 ("cmdline: free on exit") Signed-off-by: David Marchand Acked-by: Olivier Matz --- app/test/test_cmdline_lib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test/test_cmdline_lib.c b/app/test/test_cmdline_lib.c index 6bcfa6511e..94c9ce04b4 100644 --- a/app/test/test_cmdline_lib.c +++ b/app/test/test_cmdline_lib.c @@ -170,6 +170,8 @@ test_cmdline_socket_fns(void) printf("Error: failed to open /dev/null for reading!"); return -1; } + cmdline_free(cl); + cl = NULL; /* void functions */ cmdline_stdin_exit(NULL); -- 2.33.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-10 14:17:10.940494564 +0800 +++ 0204-test-cmdline-fix-memory-leak.patch 2021-11-10 14:17:02.014078251 +0800 @@ -1 +1 @@ -From 86e361cdeb495c70a154f25cd47fd6581c9aff89 Mon Sep 17 00:00:00 2001 +From e8a4c7a8d07eb7ec0a3e543ce99c8a1d09b8ac2a Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 86e361cdeb495c70a154f25cd47fd6581c9aff89 ] @@ -17 +20 @@ -index f238094b07..f50ccdb599 100644 +index 6bcfa6511e..94c9ce04b4 100644 @@ -20 +23 @@ -@@ -176,6 +176,8 @@ test_cmdline_socket_fns(void) +@@ -170,6 +170,8 @@ test_cmdline_socket_fns(void)