mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-13 21:37:43 +02:00
- auth-load-thread, fix memory leak on alloc failure when appending rrset
copy for ixfr main zone data copy.
This commit is contained in:
+3
-1
@@ -409,8 +409,10 @@ rrset_append_copy(struct auth_data* domain, struct auth_rrset* rrset,
|
||||
s->type = rrset->type;
|
||||
s->data = (struct packed_rrset_data*)memdup(rrset->data,
|
||||
packed_rrset_sizeof(rrset->data));
|
||||
if(!s->data)
|
||||
if(!s->data) {
|
||||
free(s);
|
||||
return 0;
|
||||
}
|
||||
packed_rrset_ptr_fixup(s->data);
|
||||
if(!*last)
|
||||
domain->rrsets = s;
|
||||
|
||||
Reference in New Issue
Block a user