From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BF7C5A053D for ; Fri, 17 Jul 2020 18:32:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AF2B61BEB4; Fri, 17 Jul 2020 18:32:39 +0200 (CEST) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id 5B1DC1BEB4 for ; Fri, 17 Jul 2020 18:32:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595003557; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=irxErRcrWrvPmnEMUCIBunRIyiRSH9kUAwxKTpZsCX8=; b=fEgYAYSzTsTkOTe57FO8r7esoU1Vc4DNMotp7ntPlVIoWxKeWfa/ebqpmh3nbUzBK0M5Yr uVnJuhz4HH+YFC7FsU+7N+WNya5A0immxyWnM5FT62W5e7BnD+5q6jTTOiPtdpJPV7Opzy QDY+ysS6q1DzIU05MmittFe1B6PDKAY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-372-wqT067FcMjiNGp8xv6vWLw-1; Fri, 17 Jul 2020 12:32:26 -0400 X-MC-Unique: wqT067FcMjiNGp8xv6vWLw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 46DF41085; Fri, 17 Jul 2020 16:32:25 +0000 (UTC) Received: from rh.redhat.com (unknown [10.33.36.168]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6628B75556; Fri, 17 Jul 2020 16:32:24 +0000 (UTC) From: Kevin Traynor To: Yunjian Wang Cc: Ferruh Yigit , dpdk stable Date: Fri, 17 Jul 2020 17:31:50 +0100 Message-Id: <20200717163214.4839-2-ktraynor@redhat.com> In-Reply-To: <20200717163214.4839-1-ktraynor@redhat.com> References: <20200717163214.4839-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'app/testpmd: fix memory leak on error path' has been queued to LTS release 18.11.10 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: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to LTS release 18.11.10 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/23/20. 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/kevintraynor/dpdk-stable-queue This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable-queue/commit/e4e0055a641f1799dadcf77aadab0de4ffc1d617 Thanks. Kevin. --- >From e4e0055a641f1799dadcf77aadab0de4ffc1d617 Mon Sep 17 00:00:00 2001 From: Yunjian Wang Date: Mon, 25 May 2020 09:46:23 +0800 Subject: [PATCH] app/testpmd: fix memory leak on error path [ upstream commit eb577e575d160eae08bcd9b7acf8a9d8fe795f89 ] This patch fixes the resource leak issue. Fixes: e63b50162aa3 ("app/testpmd: clean metering and policing commands") Signed-off-by: Yunjian Wang Reviewed-by: Ferruh Yigit --- app/test-pmd/cmdline_mtr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test-pmd/cmdline_mtr.c b/app/test-pmd/cmdline_mtr.c index c506d87ee5..cebaae0e99 100644 --- a/app/test-pmd/cmdline_mtr.c +++ b/app/test-pmd/cmdline_mtr.c @@ -1263,4 +1263,5 @@ static void cmd_set_port_meter_policer_action_parsed(void *parsed_result, action_mask, actions, &error); if (ret != 0) { + free(actions); print_err_msg(&error); return; -- 2.21.3 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-07-17 17:17:00.106888499 +0100 +++ 0002-app-testpmd-fix-memory-leak-on-error-path.patch 2020-07-17 17:16:59.951772047 +0100 @@ -1 +1 @@ -From eb577e575d160eae08bcd9b7acf8a9d8fe795f89 Mon Sep 17 00:00:00 2001 +From e4e0055a641f1799dadcf77aadab0de4ffc1d617 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit eb577e575d160eae08bcd9b7acf8a9d8fe795f89 ] + @@ -9 +10,0 @@ -Cc: stable@dpdk.org @@ -18 +19 @@ -index caa7e98644..ee16244de7 100644 +index c506d87ee5..cebaae0e99 100644