app/test: avoid freeing mbufs twice in qat test
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 27 Jun 2016 12:41:27 +0000 (13:41 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 27 Jun 2016 14:44:12 +0000 (16:44 +0200)
commitf0cb66e3de4037beea44ead0a89ccee9686a1e6a
treee3e8432f7e7c6cc4f34619cde0e73ccb06311de9
parentae80e59ff7969f8e6cd08fb8c04e7d124d4c1398
app/test: avoid freeing mbufs twice in qat test

Test_multi_session was freeing mbufs used in the multiple sessions
created and setting obuf to NULL after it, but ibuf was not being
set to NULL, and therefore, it was being freed again (ibuf and obuf
are pointing at the same address), in the ut_teardown() function.

Fixes: 1b9cb73ecef1 ("app/test: fix qat autotest failure")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Deepak Kumar Jain <deepak.k.jain@intel.com>
app/test/test_cryptodev.c