devargs: fix memory leak on parsing failure
devargs: fix memory leak on parsing failure

This patch fixes memory leak in parsing error handling.

Fixes: 338327d731e6 ("devargs: add function to parse device layers")
Cc: stable@dpdk.org

Signed-off-by: Xueming Li <a578f76ca98b1dec92e0d1baef814b93f3f2f3b4@nvidia.com>
Reviewed-by: Gaetan Rivet <5349a78fb7b717c3a3b30d04e535485ef35093c6@u256.net>

john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk