From ba8a8d0a4ec89475eabcb83928be0915971f2ece Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 20 Oct 2013 20:02:58 +0200 Subject: [PATCH] test tool: Fix a memory leak in test_reserve6_lun_reset.c Signed-off-by: Bart Van Assche --- test-tool/test_reserve6_lun_reset.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test-tool/test_reserve6_lun_reset.c b/test-tool/test_reserve6_lun_reset.c index 9853e49..3b4a2ed 100644 --- a/test-tool/test_reserve6_lun_reset.c +++ b/test-tool/test_reserve6_lun_reset.c @@ -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; }