- nicer bio free code in unbound-anchor.

git-svn-id: file:///svn/unbound/trunk@4905 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2018-09-13 12:49:37 +00:00
parent 898d4c8dd9
commit f7516e6b2b
2 changed files with 3 additions and 9 deletions

View file

@ -20,6 +20,7 @@
- assertion in autotrust that packed rrset is formed correctly. - assertion in autotrust that packed rrset is formed correctly.
- Fix memory leak when message parse fails partway through copy. - Fix memory leak when message parse fails partway through copy.
- remove unused udpsize assignment in message encode. - remove unused udpsize assignment in message encode.
- nicer bio free code in unbound-anchor.
11 September 2018: Wouter 11 September 2018: Wouter
- Fixed unused return value warnings in contrib/fastrpz.patch for - Fixed unused return value warnings in contrib/fastrpz.patch for

View file

@ -1171,13 +1171,6 @@ https(struct ip_list* ip_list, const char* pathname, const char* urlname)
return bio; return bio;
} }
/** free up a downloaded file BIO */
static void
free_file_bio(BIO* bio)
{
BIO_free(bio);
}
/** XML parse private data during the parse */ /** XML parse private data during the parse */
struct xml_data { struct xml_data {
/** the parser, reference */ /** the parser, reference */
@ -1955,8 +1948,8 @@ do_certupdate(const char* root_anchor_file, const char* root_cert_file,
if(verb) printf("success: the anchor has been updated " if(verb) printf("success: the anchor has been updated "
"using the cert\n"); "using the cert\n");
free_file_bio(xml); BIO_free(xml);
free_file_bio(p7s); BIO_free(p7s);
#ifndef S_SPLINT_S #ifndef S_SPLINT_S
sk_X509_pop_free(cert, X509_free); sk_X509_pop_free(cert, X509_free);
#endif #endif