On 10/22/2020 7:40 AM, Liron Himi wrote:

<...>

Subject: [EXT] [dpdk-dev] [PATCH] net/mvpp2: fix memory leak in error path

External Email

----------------------------------------------------------------------
From: Yunjian Wang <wangyunj...@huawei.com>

In mrvl_create() allocated memory for 'mtr', we don't free it when profile get 
fails and it will lead to memory leak.

We can get profile at the beginning of the function to fix it, before calling 
mtr = rte_zmalloc_socket().

Fixes: cdb53f8da628 ("net/mvpp2: support metering")
Cc: sta...@dpdk.org

Signed-off-by: Yunjian Wang <wangyunj...@huawei.com>
>
> Acked-by: Liron Himi <lir...@marvell.com>
>

Applied to dpdk-next-net/main, thanks.

Reply via email to