diff options
author | Niels Provos <provos@gmail.com> | 2007-09-09 02:35:53 +0000 |
---|---|---|
committer | Niels Provos <provos@gmail.com> | 2007-09-09 02:35:53 +0000 |
commit | 70c4b48a5e113ed711932020ce6d70cb83250497 (patch) | |
tree | e0f2478a9c41116658d2013110af393e68ffad1d | |
parent | e62ff9383cbc100ef44eb315447853080b91ea63 (diff) | |
download | libevent-70c4b48a5e113ed711932020ce6d70cb83250497.tar.gz |
from trunk: Fix a memory leak in which failed HTTP connections whould not free the request object
svn:r420
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | http.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -3,3 +3,4 @@ Changes since 1.3d: o Fix compilation on Solaris; from Magne Mahre o Add a "Date" header to HTTP responses when it's missing, as required by HTTP 1.1. Original Patch from Ralph Moritz. + o Fix a memory leak in which failed HTTP connections whould not free the request object @@ -967,6 +967,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); } } |