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 BDFA0A04C0; Tue, 6 Oct 2020 22:38:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 91EA52B82; Tue, 6 Oct 2020 22:38:01 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 6F85E2952 for ; Tue, 6 Oct 2020 22:37:59 +0200 (CEST) IronPort-SDR: +QxTn9dvf9b8Ibg2xaZShHQvd8Iu8njNf/HlVyHp4EZAyfq/t9c8Z+uP5tDx9EpNYaUPM4jV7I eQ8KcZGI6qfg== X-IronPort-AV: E=McAfee;i="6000,8403,9766"; a="151607352" X-IronPort-AV: E=Sophos;i="5.77,343,1596524400"; d="scan'208";a="151607352" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2020 13:37:57 -0700 IronPort-SDR: Enc5iriZKxLCcdjcgDMNLqqJGCsRMA5lZoqr6HGShKlXd8zgRRGj/FZ5YpDs/u0zvkU78FUkDs l/nK5iVlcUEg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,343,1596524400"; d="scan'208";a="460985784" Received: from silpixa00400573.ir.intel.com (HELO silpixa00400573.ger.corp.intel.com) ([10.237.223.107]) by orsmga004.jf.intel.com with ESMTP; 06 Oct 2020 13:37:56 -0700 From: Cristian Dumitrescu To: dev@dpdk.org Date: Tue, 6 Oct 2020 21:37:49 +0100 Message-Id: <20201006203755.90779-1-cristian.dumitrescu@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH 1/7] pipeline: fix memory leak issue 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fixes: b32c0a2c5e ("pipeline: add SWX table update high level API") Coverity issue: 362741 Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_ctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_pipeline/rte_swx_ctl.c b/lib/librte_pipeline/rte_swx_ctl.c index 576fb2bf3..9d986a83e 100644 --- a/lib/librte_pipeline/rte_swx_ctl.c +++ b/lib/librte_pipeline/rte_swx_ctl.c @@ -1463,6 +1463,7 @@ rte_swx_ctl_pipeline_table_entry_read(struct rte_swx_ctl_pipeline *ctl, arg_offset += arg->n_bits / 8; } + free(s0); return entry; error: -- 2.17.1