+3
−2
Loading
When max_discard_size_kib is set on subsystem, dsm/unmap commands are failed back if any dsm range exceeds the maximum discard size supported. This leaks memory allocated for unmap_ctx. Breaking out of the loop instead of returning early fixes the memory leak. Fixes #3539 Change-Id: I7bbb1f581e48c72947dbbbc66f5bcf1320ab69d4 Signed-off-by:Vasuki Manikarnike <vasuki.manikarnike@hpe.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/25042 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by:
Jim Harris <jim.harris@samsung.com> Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>