summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Provos <provos@gmail.com>2007-09-09 02:35:53 +0000
committerNiels Provos <provos@gmail.com>2007-09-09 02:35:53 +0000
commit70c4b48a5e113ed711932020ce6d70cb83250497 (patch)
treee0f2478a9c41116658d2013110af393e68ffad1d
parente62ff9383cbc100ef44eb315447853080b91ea63 (diff)
downloadlibevent-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--ChangeLog1
-rw-r--r--http.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8ad3ae3c..d717accd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/http.c b/http.c
index af550252..123a7bae 100644
--- a/http.c
+++ b/http.c
@@ -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);
}
}