Fix a memory leak in which failed HTTP connections whould not free the request object

svn:r419
This commit is contained in:
Niels Provos 2007-09-09 02:33:10 +00:00
parent 8ee20a3fa4
commit e2f564116e
2 changed files with 2 additions and 0 deletions

View File

@ -4,3 +4,4 @@ Changes in current version:
o Fix Solaris compilation; from Magne Mahre
o Add a "Date" header to HTTP responses, as required by HTTP 1.1.
o Support specifying the local address of an evhttp_connection using set_local_address
o Fix a memory leak in which failed HTTP connections whould not free the request object

1
http.c
View File

@ -992,6 +992,7 @@ evhttp_connectioncb(int fd, short what, void *arg)
/* we might want to set an error here */
request->cb(request, request->cb_arg);
evhttp_request_free(request);
}
}