aboutsummaryrefslogtreecommitdiff
path: root/src/or/eventdns.c
diff options
context:
space:
mode:
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) {