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:
Bart Van Assche
2013-10-21 11:48:37 +02:00
committed by Ronnie Sahlberg
parent d6ecafa6f5
commit a1f32527d5

View File

@@ -58,6 +58,7 @@ test_reserve6_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);