iscsi-target: fix memory leak in lio_target_tiqn_addtpg()
authortangwenji <tang.wenji@zte.com.cn>
Fri, 15 Sep 2017 08:03:13 +0000 (16:03 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 4 Nov 2017 21:45:25 +0000 (14:45 -0700)
commit12d5a43b2dffb6cd28062b4e19024f7982393288
treebb16b67d47cd84a6b8f3aaa480bff73e45025e54
parent24528f089d0a444070aa4f715ace537e8d6bf168
iscsi-target: fix memory leak in lio_target_tiqn_addtpg()

tpg must free when call core_tpg_register() return fail

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