test tool: Fix a memory leak in test-tool/test_reserve6_logout.c
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
This commit is contained in:
committed by
Ronnie Sahlberg
parent
d6ecafa6f5
commit
a1f32527d5
@@ -58,6 +58,7 @@ test_reserve6_logout(void)
|
|||||||
|
|
||||||
logging(LOG_VERBOSE, "Logout from target");
|
logging(LOG_VERBOSE, "Logout from target");
|
||||||
iscsi_logout_sync(iscsic);
|
iscsi_logout_sync(iscsic);
|
||||||
|
iscsi_destroy_context(iscsic);
|
||||||
|
|
||||||
logging(LOG_VERBOSE, "Relogin to target");
|
logging(LOG_VERBOSE, "Relogin to target");
|
||||||
iscsic = iscsi_context_login(initiatorname1, tgt_url, &tgt_lun);
|
iscsic = iscsi_context_login(initiatorname1, tgt_url, &tgt_lun);
|
||||||
|
|||||||
Reference in New Issue
Block a user