From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 78C6F3B5 for ; Fri, 27 Jan 2017 15:53:00 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP; 27 Jan 2017 06:52:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,295,1477983600"; d="scan'208";a="814056515" Received: from silpixa00381631.ir.intel.com (HELO silpixa00381631.ger.corp.intel.com) ([10.237.222.122]) by FMSMGA003.fm.intel.com with ESMTP; 27 Jan 2017 06:52:58 -0800 From: Pablo de Lara To: adrien.mazarguil@6wind.com, jingjing.wu@intel.com Cc: dev@dpdk.org, Pablo de Lara Date: Fri, 27 Jan 2017 14:54:58 +0000 Message-Id: <1485528898-53283-1-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1485522948-210951-1-git-send-email-pablo.de.lara.guarch@intel.com> References: <1485522948-210951-1-git-send-email-pablo.de.lara.guarch@intel.com> Subject: [dpdk-dev] [PATCH v2] app/testpmd: fix memory leak X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2017 14:53:00 -0000 Free memory when port flow entry creation fails. Coverity issue: 139600 Fixes: 938a184a1870 ("app/testpmd: implement basic support for flow API") Signed-off-by: Pablo de Lara --- Changes in v2: - Removed unnecessary conditional app/test-pmd/config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 5834498..467932f 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -954,6 +954,7 @@ port_flow_new(const struct rte_flow_attr *attr, goto store; } notsup: + free(pf); rte_errno = err; return NULL; } -- 2.7.4