summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Provos <provos@gmail.com>2007-09-10 01:31:20 +0000
committerNiels Provos <provos@gmail.com>2007-09-10 01:31:20 +0000
commitea6fd5a28eb7ad13c7c5071ab86acb5dcfac3913 (patch)
treeb8ddecd22b06f5c6ae058b942114f3b934065637
parent70c4b48a5e113ed711932020ce6d70cb83250497 (diff)
downloadlibevent-ea6fd5a28eb7ad13c7c5071ab86acb5dcfac3913.tar.gz
from trunk: fix a memory leak in the dns server; found by valgrind
svn:r423
-rw-r--r--ChangeLog1
-rw-r--r--evdns.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d717accd..a70d82f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,3 +4,4 @@ Changes since 1.3d:
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
+ o Fix a memory leak in the DNS server
diff --git a/evdns.c b/evdns.c
index e8317d3d..741f2013 100644
--- a/evdns.c
+++ b/evdns.c
@@ -1733,6 +1733,7 @@ server_request_free(struct server_request *req)
if (req->base.questions) {
for (i = 0; i < req->base.nquestions; ++i)
free(req->base.questions[i]);
+ free(req->base.questions);
}
if (req->port) {