test/devargs: fix memory leak
authorXueming Li <xuemingl@nvidia.com>
Sat, 23 Oct 2021 12:17:55 +0000 (20:17 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 25 Oct 2021 07:42:38 +0000 (09:42 +0200)
commitd05c2dcc490e819e3502c6c89de22851f4fff053
tree91659d35bf2e8660e2628a8a820ba93daa696f6d
parente0d3a74d926466051127bf87657a3ae662cfc43b
test/devargs: fix memory leak

In layer argument test function, kvargs are parsed and checked without
free. This patch calls rte_kvargs_free() function to avoid memory leak.

Coverity issue: 373631
Fixes: a4975cd20dca ("test: add devargs test cases")

Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
app/test/test_devargs.c