mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 14:53:15 -05:00
Memory leak fix.
git-svn-id: file:///svn/unbound/trunk@1832 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
9c822ebc9e
commit
45acda0535
3 changed files with 6 additions and 0 deletions
|
|
@ -806,6 +806,7 @@ worker_handle_request(struct comm_point* c, void* arg, int error,
|
|||
}
|
||||
if(local_zones_answer(worker->daemon->local_zones, &qinfo, &edns,
|
||||
c->buffer, worker->scratchpad)) {
|
||||
regional_free_all(worker->scratchpad);
|
||||
if(ldns_buffer_limit(c->buffer) == 0) {
|
||||
comm_point_drop_reply(repinfo);
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
16 September 2009: Wouter
|
||||
- Fix memory leak reported by Tao Ma.
|
||||
|
||||
15 September 2009: Wouter
|
||||
- iana portlist updated.
|
||||
|
||||
|
|
|
|||
|
|
@ -514,6 +514,7 @@ int libworker_fg(struct ub_ctx* ctx, struct ctx_query* q)
|
|||
ldns_buffer_write_u16_at(w->back->udp_buff, 2, qflags);
|
||||
if(local_zones_answer(ctx->local_zones, &qinfo, &edns,
|
||||
w->back->udp_buff, w->env->scratch)) {
|
||||
regional_free_all(w->env->scratch);
|
||||
libworker_fillup_fg(q, LDNS_RCODE_NOERROR,
|
||||
w->back->udp_buff, sec_status_insecure);
|
||||
libworker_delete(w);
|
||||
|
|
@ -630,6 +631,7 @@ handle_newq(struct libworker* w, uint8_t* buf, uint32_t len)
|
|||
ldns_buffer_write_u16_at(w->back->udp_buff, 2, qflags);
|
||||
if(local_zones_answer(w->ctx->local_zones, &qinfo, &edns,
|
||||
w->back->udp_buff, w->env->scratch)) {
|
||||
regional_free_all(w->env->scratch);
|
||||
q->msg_security = sec_status_insecure;
|
||||
add_bg_result(w, q, w->back->udp_buff, UB_NOERROR);
|
||||
free(qinfo.qname);
|
||||
|
|
|
|||
Loading…
Reference in a new issue