Add cleanup

--HG--
branch : fastopen
This commit is contained in:
Matt Johnston
2015-02-28 23:15:23 +08:00
parent 31e379c300
commit 89c0b2a6d8
3 changed files with 13 additions and 0 deletions

View File

@@ -281,6 +281,8 @@ void session_cleanup() {
other session state is freed. */
remove_all_listeners();
remove_connect_pending();
while (!isempty(&ses.writequeue)) {
buf_free(dequeue(&ses.writequeue));
}