app/crypto-perf: fix operation free
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 7 Aug 2017 03:16:54 +0000 (04:16 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 7 Aug 2017 12:31:37 +0000 (14:31 +0200)
commit61bec3623ceba3fda30a1dd74adc67cdb6dc9466
tree7cebe11e43b8d745c450f92a8c7ec04fc7e958c9
parentb9c7fc35b51c5ea2531859b1be45191312f2b9d4
app/crypto-perf: fix operation free

In crypto latency test, when some crypto operations cannot be
enqueued, they are returned to its mempool.
However, instead of freeing the operations in the array passed
to the enqueue function, the app was freeing the operations
in the array passed to the dequeue function, leading to incorrect
results.

Fixes: 15b55dd75120 ("app/crypto-perf: return crypto ops to mempool in bulk")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-crypto-perf/cperf_test_latency.c