DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] app/testpmd: fix memory leak
@ 2017-01-27 13:15 Pablo de Lara
  2017-01-27 14:54 ` [dpdk-dev] [PATCH v2] " Pablo de Lara
  0 siblings, 1 reply; 4+ messages in thread
From: Pablo de Lara @ 2017-01-27 13:15 UTC (permalink / raw)
  To: adrien.mazarguil, jingjing.wu; +Cc: dev, Pablo de Lara

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 <pablo.de.lara.guarch@intel.com>
---
 app/test-pmd/config.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index 5834498..5823100 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -954,6 +954,8 @@ port_flow_new(const struct rte_flow_attr *attr,
 		goto store;
 	}
 notsup:
+	if (pf)
+		free(pf);
 	rte_errno = err;
 	return NULL;
 }
-- 
2.7.4

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-30 12:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-27 13:15 [dpdk-dev] [PATCH] app/testpmd: fix memory leak Pablo de Lara
2017-01-27 14:54 ` [dpdk-dev] [PATCH v2] " Pablo de Lara
2017-01-30  9:33   ` Adrien Mazarguil
2017-01-30 12:26     ` De Lara Guarch, Pablo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).