[dpdk-dev] [PATCH] lib/librte_flow_classify: fix memory leak issue
Ferruh Yigit
ferruh.yigit at intel.com
Mon Jan 22 15:49:08 CET 2018
On 1/22/2018 2:14 PM, Jasvinder Singh wrote:
> Free allocated memory of the rule if not added to the table.
>
> Coverity issue: 257032
> Fixes: 50bdac5916d9 ("flow_classify: remove table id parameter from API")
>
> Signed-off-by: Jasvinder Singh <jasvinder.singh at intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>
> ---
> lib/librte_flow_classify/rte_flow_classify.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/lib/librte_flow_classify/rte_flow_classify.c b/lib/librte_flow_classify/rte_flow_classify.c
> index 6fa6a74..55492a6 100644
> --- a/lib/librte_flow_classify/rte_flow_classify.c
> +++ b/lib/librte_flow_classify/rte_flow_classify.c
> @@ -560,6 +560,7 @@ rte_flow_classify_table_entry_add(struct rte_flow_classifier *cls,
> return rule;
> }
> }
> + free(rule);
> return NULL;
> }
>
>
More information about the dev
mailing list