baseband/turbo_sw: fix memory leak in error path
authorYunjian Wang <wangyunjian@huawei.com>
Thu, 15 Oct 2020 13:45:45 +0000 (21:45 +0800)
committerAkhil Goyal <akhil.goyal@nxp.com>
Mon, 2 Nov 2020 08:24:40 +0000 (09:24 +0100)
commit240fb56cdb8a4d48359f83b2cb856410016b9207
tree0a05dada8ce7599a7d1d1b8cca26e1b729490828
parent57e03d2a620534cee72a54396d799a0a6c1ca2d5
baseband/turbo_sw: fix memory leak in error path

In q_setup() allocated memory for the queue data, we should free
it when error happens, otherwise it will lead to memory leak.

Fixes: b8cfe2c9aed2 ("bb/turbo_sw: add software turbo driver")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Nicolas Chautru <nicolas.chautru@intel.com>
drivers/baseband/turbo_sw/bbdev_turbo_software.c