mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-18 19:50:54 +00:00
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:
parent
0527639cd9
commit
5c6109691a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user