app/test: avoid freeing mbuf twice
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Sat, 25 Jun 2016 16:11:21 +0000 (17:11 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 27 Jun 2016 10:43:49 +0000 (12:43 +0200)
commit643e942719407c43da99523bba4424716425d41b
tree3300d573966ec2b6cd88fa972cbdace93d18c1de
parent7e20853db5afaa02caacd9cdbaba7c400ed5b523
app/test: avoid freeing mbuf twice

In cryptodev tests, when input and output buffers were the same,
the mbuf was being freed twice, causing refcnt_atomic to be negative.

Fixes: 202d375c60bc ("app/test: add cryptodev unit and performance tests")

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