mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-08 02:47:43 +02:00
- Fix memleak in testcode for testbound (if it fails).
- Fix NSS returned arrays out of setup function to be statics. git-svn-id: file:///svn/unbound/trunk@2930 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
@@ -909,8 +909,10 @@ outside_network_create(struct comm_base* base, size_t bufsize,
|
||||
runtime->infra = infra;
|
||||
outnet->base = base;
|
||||
outnet->udp_buff = ldns_buffer_new(bufsize);
|
||||
if(!outnet->udp_buff)
|
||||
if(!outnet->udp_buff) {
|
||||
free(outnet);
|
||||
return NULL;
|
||||
}
|
||||
return outnet;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user