From d6ecafa6f5925d8885d82813a246c68975f75315 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 20 Oct 2013 17:26:19 +0200 Subject: [PATCH] test tool: Fix a memory leak in test_preventallow_logout.c Signed-off-by: Bart Van Assche --- test-tool/test_preventallow_logout.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test-tool/test_preventallow_logout.c b/test-tool/test_preventallow_logout.c index 0c336cd..e5cc02a 100644 --- a/test-tool/test_preventallow_logout.c +++ b/test-tool/test_preventallow_logout.c @@ -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);