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.gua...@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