]> git.droids-corp.org - dpdk.git/commitdiff
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 a314646c2d6d20bfe912557039e11d538d84afe8..5221f2251337b284edbc3a1e3df5a4d761849538 100644 (file)
@@ -386,6 +386,7 @@ cperf_verify_op(struct rte_crypto_op *op,
                                        options->digest_sz);
        }
 
+       rte_free(data);
        return !!res;
 }