Commit 0aae86589f0263d4ba30bc4f6d56fbb4bbb572b3
1 parent
90476e07
free reader (HttpRequestParser) when connection is closed
Showing
1 changed file
with
1 additions
and
0 deletions
@@ -7,6 +7,7 @@ void | @@ -7,6 +7,7 @@ void | ||
7 | serverCloseConn(Server this, unsigned int i) | 7 | serverCloseConn(Server this, unsigned int i) |
8 | { | 8 | { |
9 | delete(&((this->conns)[i].sock)); | 9 | delete(&((this->conns)[i].sock)); |
10 | + delete(&((this->conns)[i].reader)); | ||
10 | CLEAR_CONN(this, i); | 11 | CLEAR_CONN(this, i); |
11 | this->nfds--; | 12 | this->nfds--; |
12 | } | 13 | } |
Please
register
or
login
to post a comment