net/mlx5: fix memory leak when parsing device params
authorShahaf Shuler <shahafs@mellanox.com>
Sun, 22 Jan 2017 08:24:47 +0000 (10:24 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 30 Jan 2017 21:18:26 +0000 (22:18 +0100)
commita67323e49c47380604c0dece509ffd9b7e58cfc3
treef6ad9e6aff69d8bd1c9a43b386e040a1d1d18ed0
parent39922c470e3ce7dcb00910e8f821b7fdd718c3b5
net/mlx5: fix memory leak when parsing device params

in case of an error argument list is not freed.

Fixes: e72dd09b614e ("net/mlx5: add support for configuration through kvargs")
Cc: stable@dpdk.org
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5.c