summaryrefslogtreecommitdiff
path: root/src/or/eventdns.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-09-10 13:48:01 +0000
committerNick Mathewson <nickm@torproject.org>2007-09-10 13:48:01 +0000
commit615d19fe4c34a0c270e16268eff135fb9e976eb1 (patch)
treede13b386296319ef35e61c2224fb43abfb6b5467 /src/or/eventdns.c
parent6744ebe7b5efad0a8c46433042080199f1da8ec1 (diff)
downloadtor-615d19fe4c34a0c270e16268eff135fb9e976eb1.tar.gz
tor-615d19fe4c34a0c270e16268eff135fb9e976eb1.zip
r15001@catbus: nickm | 2007-09-10 09:44:49 -0400
Fix a couple of memory leaks in eventdns.c; found by niels. Not backport candidates, since they only affect DNSPort users. svn:r11413
Diffstat (limited to 'src/or/eventdns.c')
-rw-r--r--src/or/eventdns.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c
index 5074bcd541..5f2ae9d96f 100644
--- a/src/or/eventdns.c
+++ b/src/or/eventdns.c
@@ -1745,7 +1745,7 @@ server_request_free_answers(struct server_request *req)
free(victim->name);
if (victim->data)
free(victim->data);
- /* XXXX free(victim?) -NM */
+ free(victim);
victim = next;
}
*list = NULL;
@@ -1761,6 +1761,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) {