test tool: Fix a memory leak in test_reserve6_lun_reset.c

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
This commit is contained in:
Bart Van Assche
2013-10-20 20:02:58 +02:00
committed by Ronnie Sahlberg
parent b6b49e4a66
commit ba8a8d0a4e

View File

@@ -70,4 +70,8 @@ test_reserve6_lun_reset(void)
logging(LOG_VERBOSE, "RELEASE6 from the second initiator");
ret = release6(iscsic2, tgt_lun);
CU_ASSERT_EQUAL(ret, 0);
iscsi_logout_sync(iscsic2);
iscsi_destroy_context(iscsic2);
iscsic2 = NULL;
}