From ed1ed27ddedf63e37904428491271ff5426a2c76 Mon Sep 17 00:00:00 2001 From: Peter Lieven Date: Tue, 3 Jan 2017 12:19:12 +0100 Subject: [PATCH] socket: return in->hdr to smalloc pool commit bc64420 introduced an extra smalloc for the in->hdr, however it did use iscsi_free instead of iscsi_sfree to free it. Signed-off-by: Peter Lieven --- lib/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/socket.c b/lib/socket.c index 7ab6be8..aa25059 100644 --- a/lib/socket.c +++ b/lib/socket.c @@ -979,7 +979,7 @@ static int iscsi_tcp_queue_pdu(struct iscsi_context *iscsi, void iscsi_free_iscsi_in_pdu(struct iscsi_context *iscsi, struct iscsi_in_pdu *in) { - iscsi_free(iscsi, in->hdr); + iscsi_sfree(iscsi, in->hdr); iscsi_free(iscsi, in->data); in->data=NULL; iscsi_sfree(iscsi, in);