iscsi-target: fix memory leak in iscsit_release_discovery_tpg()
authortangwenji <tang.wenji@zte.com.cn>
Fri, 15 Sep 2017 09:18:07 +0000 (17:18 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 4 Nov 2017 21:47:04 +0000 (14:47 -0700)
commita0884d489e016606e5e040624edaa13efefc3fcb
tree443405413b30bd3e6c285e22ed978c5641dfb502
parent12d5a43b2dffb6cd28062b4e19024f7982393288
iscsi-target: fix memory leak in iscsit_release_discovery_tpg()

Need to release the param_list for tpg in iscsi_release_discovery_tpg
function, this is also required before the iscsit_load_discovery_tpg
function exits abnormally.

Signed-off-by: tangwenji <tang.wenji@zte.com.cn>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_tpg.c