devargs: fix memory leak on parsing failure
authorXueming Li <xuemingl@nvidia.com>
Tue, 13 Apr 2021 03:14:09 +0000 (03:14 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 14 Apr 2021 20:25:15 +0000 (22:25 +0200)
commite132ee8690474fa985e26f1d4db75823024748c8
treec4aaa9a57a3883330fddca19732a62d74feedc97
parent64051bb1f144c418f3fc76e6d0973337b05d5886
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 <xuemingl@nvidia.com>
Reviewed-by: Gaetan Rivet <grive@u256.net>
lib/librte_eal/common/eal_common_devargs.c