devargs: fix variadic parsing memory leak
authorGaetan Rivet <gaetan.rivet@6wind.com>
Wed, 17 Oct 2018 14:30:13 +0000 (16:30 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 25 Oct 2018 06:54:25 +0000 (08:54 +0200)
commit97e476ad7c89303b21deea5b87fa0f0612d50f5c
treedfb1ecb620684cc095502c26c07684fa60666488
parent81bede55e3f5b821fc68986e42f188f8d492f050
devargs: fix variadic parsing memory leak

rte_devargs_parsef will leak memory each time it is called.
The device string must be freed.

Fixes: a23bc2c4e01b ("devargs: add non-variadic parsing function")
Cc: stable@dpdk.org
Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
lib/librte_eal/common/eal_common_devargs.c