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