BUG/MEDIUM: session: Remove the session from the session_list in session_free.

When freeing the session, we may fail to free the outgoing connection,
because it still has streams attached. So remove ourself from the session
list, so that the connection doesn't try to access it later.
This commit is contained in:
Olivier Houchard 2018-11-29 17:50:45 +01:00 committed by Willy Tarreau
parent 0527639cd9
commit 5c6109691a

View File

@ -88,6 +88,7 @@ void session_free(struct session *sess)
conn_full_close(conn);
conn_free(conn);
}
LIST_DEL(&sess->conn_list);
pool_free(pool_head_session, sess);
HA_ATOMIC_SUB(&jobs, 1);
}