mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue