From 3b6f796a1bc348a0bc95fde20085cfd9047dc5c4 Mon Sep 17 00:00:00 2001 From: Peter Lieven Date: Tue, 24 Mar 2015 14:33:06 +0100 Subject: [PATCH] reconnect: do not leak immediate PDUs Signed-off-by: Peter Lieven --- lib/connect.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/connect.c b/lib/connect.c index 1f79880..48b8911 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -341,6 +341,7 @@ try_again: ISCSI_LIST_REMOVE(&old_iscsi->waitpdu, pdu); if (pdu->itt == 0xffffffff) { + iscsi_free_pdu(old_iscsi, pdu); continue; }