fix a memory leak in the dns server; found by valgrind

svn:r422
This commit is contained in:
Niels Provos 2007-09-10 01:30:11 +00:00
parent babd622f7a
commit 7c66bf33e1
2 changed files with 2 additions and 0 deletions

View File

@ -6,3 +6,4 @@ Changes in current version:
o Support specifying the local address of an evhttp_connection using set_local_address
o Fix a memory leak in which failed HTTP connections whould not free the request object
o Make adding of array members in event_rpcgen more efficient, but doubling memory allocation
o Fix a memory leak in the DNS server

View File

@ -1729,6 +1729,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) {