app/test-crypto-perf: fix memory leak
authorOlivier Matz <olivier.matz@6wind.com>
Mon, 11 Sep 2017 15:13:32 +0000 (17:13 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:50 +0000 (02:49 +0200)
data is allocated but never freed.

Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application")
Cc: stable@dpdk.org
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-crypto-perf/cperf_test_verify.c

index a314646..5221f22 100644 (file)
@@ -386,6 +386,7 @@ cperf_verify_op(struct rte_crypto_op *op,
                                        options->digest_sz);
        }
 
+       rte_free(data);
        return !!res;
 }