revert: Fix a memory leak with http connections owned by the server.

svn:r966
This commit is contained in:
Niels Provos 2008-12-19 21:53:23 +00:00
parent 3e55a52926
commit f383ee29d9
2 changed files with 0 additions and 3 deletions

View File

@ -6,7 +6,6 @@ Changes in 1.4.9-stable:
o Clear the timer cache when leaving the event loop; reported by Robin Haberkorn
o Fix a typo in setting the global event base; reported by lance.
o Fix a memory leak when reading multi-line headers
o Fix a memory leak with http connections owned by the server.
Changes in 1.4.8-stable:
o Match the query in DNS replies to the query in the request; from Vsevolod Stakhov.

2
http.c
View File

@ -1092,8 +1092,6 @@ evhttp_detect_close_cb(int fd, short what, void *arg)
{
struct evhttp_connection *evcon = arg;
evhttp_connection_reset(evcon);
if (evcon->http_server && evcon->state == EVCON_READING_FIRSTLINE)
evhttp_connection_free(evcon);
}
static void