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>
if ((int)kvlist->count != n) {
printf("rte_devargs_parse(%s) %s_str: %s kv number %u, not %d\n",
devargs, layer, args, kvlist->count, n);
+ rte_kvargs_free(kvlist);
return -1;
}
+ rte_kvargs_free(kvlist);
return 0;
}