From a1f32527d58c319c2cea33ac98dd9bd031216d42 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 21 Oct 2013 11:48:37 +0200 Subject: [PATCH] test tool: Fix a memory leak in test-tool/test_reserve6_logout.c Signed-off-by: Bart Van Assche --- test-tool/test_reserve6_logout.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test-tool/test_reserve6_logout.c b/test-tool/test_reserve6_logout.c index 476b1e7..e0ea4ff 100644 --- a/test-tool/test_reserve6_logout.c +++ b/test-tool/test_reserve6_logout.c @@ -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);