cryptodev: fix memory leak in parameter parsing
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 18 Jul 2016 13:21:04 +0000 (14:21 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 22 Jul 2016 09:53:32 +0000 (11:53 +0200)
commit5a4e71f1f461a93b34fae5249f8131f1039bb3bc
tree35557bb30231620377e20911c6339dc31f2a0647
parente8df94b86f9d224d45530c0c7a7ff013742450e3
cryptodev: fix memory leak in parameter parsing

When parsing the parameters for virtual device initialization,
rte_kvargs structure was being freed only if there was an error,
not when parsing was successful.

Coverity issue: 124568
Fixes: f3e764fa2fb7 ("cryptodev: uninline parameter parsing")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Reshma Pattan <reshma.pattan@intel.com>
lib/librte_cryptodev/rte_cryptodev.c