- 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:
Wouter Wijngaards
2013-07-29 07:32:35 +00:00
parent e01a5ea199
commit 021f32ebf9
3 changed files with 14 additions and 8 deletions
+3 -1
View File
@@ -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;
}