app/compress-perf: fix memory deallocation
authorAdam Dybkowski <adamx.dybkowski@intel.com>
Tue, 6 Aug 2019 09:40:53 +0000 (11:40 +0200)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 9 Oct 2019 09:50:12 +0000 (11:50 +0200)
commitc591df32ad8e9beb59c5970a893c20b7574c4c87
tree450877ea909fa6c170d35e60ab2e044097d1ddc2
parent8a95d6bc931ae472f7ed4a552f1467efb763b484
app/compress-perf: fix memory deallocation

This patch fixes the memory deallocation issue which happened
after unsuccessful allocation (e.g. due to the out of memory)
and produced the segmentation fault.

Fixes: 424dd6c8c1 ("app/compress-perf: add weak functions for multicore test")
Cc: stable@dpdk.org
Signed-off-by: Adam Dybkowski <adamx.dybkowski@intel.com>
Acked-by: Artur Trybula <arturx.trybula@intel.com>
app/test-compress-perf/comp_perf_test_common.c