net/mlx5: fix memory leak when parsing device params