numam-spdk/lib/iscsi
Weiguo Li e685574f76 iscsi: fix a memory leak in error handling
When function returned from the error handling the mempool on
'sess' was not released which lead to a memory leak.

Fixes issue #2393.

Signed-off-by: Weiguo Li <liwg06@foxmail.com>
Change-Id: Ida3651e9369fb5c4948969480d398a723b2cb6a2
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11714
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
2022-02-24 14:55:16 +00:00
..
conn.c iscsi: iSCSI connection use spdk_scsi_dev_get_first/next_lun() to iterate LUNs 2021-10-11 10:08:22 +00:00
conn.h trace: move all trace definitions to a separate file 2021-10-20 07:22:00 +00:00
init_grp.c spelling: lib 2021-12-03 08:12:55 +00:00
init_grp.h subsystem/iscsi: remove legacy config support 2020-10-20 08:53:53 +00:00
iscsi_rpc.c iscsi: Set resource pool size to the predetermined values to run with little memory 2021-06-17 08:59:18 +00:00
iscsi_subsystem.c iscsi: Fix data digest degradation by restoring the original code 2021-07-07 07:26:23 +00:00
iscsi.c iscsi: fix a memory leak in error handling 2022-02-24 14:55:16 +00:00
iscsi.h spelling: lib 2021-12-03 08:12:55 +00:00
Makefile so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
md5.c lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in md5.h 2020-04-20 07:38:29 +00:00
md5.h lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in md5.h 2020-04-20 07:38:29 +00:00
param.c lib/iscsi: add a comment for iscsi_parse_params() 2021-03-26 21:06:15 +00:00
param.h lib/iscsi: Remove the "spdk_" prefix from internal APIs declared in param.h 2020-04-20 07:38:29 +00:00
portal_grp.c lib/iscsi: Add portal_group_resume() and add pause parameter to portal_group_open() 2020-11-24 08:20:37 +00:00
portal_grp.h lib/iscsi: Add portal_group_resume() and add pause parameter to portal_group_open() 2020-11-24 08:20:37 +00:00
spdk_iscsi.map subsystem/iscsi: remove legacy config support 2020-10-20 08:53:53 +00:00
task.c lib/iscsi: Merge multiple Data-OUT PDUs up to 64KB in a sequence 2021-04-19 12:47:40 +00:00
task.h lib/iscsi: Merge multiple Data-OUT PDUs up to 64KB in a sequence 2021-04-19 12:47:40 +00:00
tgt_node.c spelling: lib 2021-12-03 08:12:55 +00:00
tgt_node.h subsystem/iscsi: remove legacy config support 2020-10-20 08:53:53 +00:00