mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-16 09:08:01 -05:00
- Review for #790: Fix memory leak.
This commit is contained in:
parent
c15cfb4bd9
commit
0912015fb9
1 changed files with 1 additions and 1 deletions
2
services/cache/dns.c
vendored
2
services/cache/dns.c
vendored
|
|
@ -670,7 +670,7 @@ tomsg(struct module_env* env, struct query_info* q, struct reply_info* r,
|
|||
msg->rep->authoritative = r->authoritative;
|
||||
msg->rep->reason_bogus = r->reason_bogus;
|
||||
if (r->reason_bogus_str_size > 0) {
|
||||
msg->rep->reason_bogus_str = strdup(r->reason_bogus_str);
|
||||
msg->rep->reason_bogus_str = regional_strdup(region, r->reason_bogus_str);
|
||||
msg->rep->reason_bogus_str_size = r->reason_bogus_str_size;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue