Spdk/lib/bdev
Dariusz Stojaczyk 244c9ab9eb bdev/iscsi: fix memory leaks on connection failures
create_iscsi_lun freed the provided parameters under
one condition, and did not under some other. The
behavior is now clarified.

When create_iscsi_lun succeeded, the parameters are
passed to an iscsi bdev and will be freed together
with its removal, but if the bdev could not be created,
the params need to be freed manually.

Change-Id: I010421d48461b365a324488029e11c90a4e20a37
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/420569
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ziye Yang <optimistyzy@gmail.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
2018-07-27 16:25:17 +00:00
..
aio bdev/aio: unregister io_device when aio bdev is deleted 2018-07-26 04:52:41 +00:00
error bdev: split examine into two parts 2018-07-06 21:12:53 +00:00
gpt bdev: split examine into two parts 2018-07-06 21:12:53 +00:00
iscsi bdev/iscsi: fix memory leaks on connection failures 2018-07-27 16:25:17 +00:00
lvol lvol: remove destruct_req from lvol store 2018-07-26 21:55:36 +00:00
malloc rpc/bdev: construct RPC return a string instead array 2018-06-22 21:12:43 +00:00
null bdev: add delete_null_bdev call 2018-07-02 22:53:18 +00:00
nvme bdev/nvme: add RPC to enable and disable hotplug 2018-07-26 22:12:29 +00:00
passthru bdev: split examine into two parts 2018-07-06 21:12:53 +00:00
pmem bdev: add delete_pmem_bdev call 2018-07-02 22:53:18 +00:00
raid bdev/raid: fix the double free memory in realloc 2018-07-25 17:36:55 +00:00
rbd bdev/rbd: change the poller to timer poller 2018-07-03 16:40:18 +00:00
rpc bdev: add extra parameters to iostat rpc. 2018-07-12 23:27:27 +00:00
split bdev: split examine into two parts 2018-07-06 21:12:53 +00:00
virtio bdev: add remove_virtio_bdev call 2018-07-26 22:07:50 +00:00
bdev.c bdev: defer call of spdk_bdev_init_failed() when a module fails 2018-07-26 16:58:40 +00:00
Makefile bdev: add raid bdev module 2018-07-16 20:50:40 +00:00
part.c bdev: remove public usage of bdev_part_base.ref 2018-07-05 19:12:53 +00:00
scsi_nvme.c bdev: move error union to internal spdk_bdev_io struct 2018-06-26 20:04:07 +00:00
vtune.c bdev: disable new GCC 7 warning in VTune code 2018-03-19 15:58:15 -04:00