Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/mvpp2: fix memory leak in error path
[ upstream commit 1b2c17d ] 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: cdb53f8 ("net/mvpp2: support metering") Signed-off-by: Yunjian Wang <wangyunjian@huawei.com> Acked-by: Liron Himi <lironh@marvell.com>
- Loading branch information