Loading
bdevperf: Remove TAILQ_REMOVE which may result in potential memory leak
Only bdevperf_test_done() dequeues jobs from g_bdevperf.jobs list and frees these. If _bdevperf_construct_job() dequeues job, it is leaked. bdevperf does not have any special handling when g_run_rc is -ENOMEM before bdevperf_construct_job(). To avoid future potential issues, remove the TAILQ_REMOVE(). Signed-off-by:Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I00ef484b99dd8b65f6c527e428d5bfb97df1c508 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/25458 Community-CI: Community CI Samsung <spdk.community.ci.samsung@gmail.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Mellanox Build Bot Reviewed-by:
Jim Harris <jim.harris@nvidia.com>