diff --git a/lib/iscsi/conn.c b/lib/iscsi/conn.c index c72bf857a..5474f0d69 100644 --- a/lib/iscsi/conn.c +++ b/lib/iscsi/conn.c @@ -335,8 +335,6 @@ spdk_iscsi_conn_free_pdu(struct spdk_iscsi_conn *conn, struct spdk_iscsi_pdu *pd /* Free the primary task after the last subtask done */ spdk_iscsi_task_put(primary); } - } else { - spdk_iscsi_task_put(primary); } } }