mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-11 21:34:53 -04:00
fix a memory leak in the dns server; found by valgrind
svn:r422
This commit is contained in:
parent
babd622f7a
commit
7c66bf33e1
@ -6,3 +6,4 @@ Changes in current version:
|
|||||||
o Support specifying the local address of an evhttp_connection using set_local_address
|
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 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 Make adding of array members in event_rpcgen more efficient, but doubling memory allocation
|
||||||
|
o Fix a memory leak in the DNS server
|
||||||
|
1
evdns.c
1
evdns.c
@ -1729,6 +1729,7 @@ server_request_free(struct server_request *req)
|
|||||||
if (req->base.questions) {
|
if (req->base.questions) {
|
||||||
for (i = 0; i < req->base.nquestions; ++i)
|
for (i = 0; i < req->base.nquestions; ++i)
|
||||||
free(req->base.questions[i]);
|
free(req->base.questions[i]);
|
||||||
|
free(req->base.questions);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req->port) {
|
if (req->port) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user