diff options
author | Niels Provos <provos@gmail.com> | 2007-09-10 01:31:20 +0000 |
---|---|---|
committer | Niels Provos <provos@gmail.com> | 2007-09-10 01:31:20 +0000 |
commit | ea6fd5a28eb7ad13c7c5071ab86acb5dcfac3913 (patch) | |
tree | b8ddecd22b06f5c6ae058b942114f3b934065637 | |
parent | 70c4b48a5e113ed711932020ce6d70cb83250497 (diff) | |
download | libevent-ea6fd5a28eb7ad13c7c5071ab86acb5dcfac3913.tar.gz |
from trunk: fix a memory leak in the dns server; found by valgrind
svn:r423
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | evdns.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -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 @@ -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) { |