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:
Bart Van Assche
2013-10-20 17:26:19 +02:00
committed by Ronnie Sahlberg
parent 9c7092e85c
commit d6ecafa6f5

View File

@@ -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);