]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- nicer bio free code in unbound-anchor.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 13 Sep 2018 12:49:37 +0000 (12:49 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 13 Sep 2018 12:49:37 +0000 (12:49 +0000)
git-svn-id: file:///svn/unbound/trunk@4905 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
smallapp/unbound-anchor.c

index eaa019a3e51f16372f741ab36d9d2fa1ca8f6f7d..782a92fb879c446022613408f4c2ab69aebdc9d5 100644 (file)
@@ -20,6 +20,7 @@
        - assertion in autotrust that packed rrset is formed correctly.
        - Fix memory leak when message parse fails partway through copy.
        - remove unused udpsize assignment in message encode.
+       - nicer bio free code in unbound-anchor.
 
 11 September 2018: Wouter
        - Fixed unused return value warnings in contrib/fastrpz.patch for
index 36f826668af1d2f0cba320153b7d15c471b40183..fbd8f130f554241f4c202bd597f3f842c608db36 100644 (file)
@@ -1171,13 +1171,6 @@ https(struct ip_list* ip_list, const char* pathname, const char* urlname)
        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 */
 struct xml_data {
        /** 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 "
                        "using the cert\n");
 
-       free_file_bio(xml);
-       free_file_bio(p7s);
+       BIO_free(xml);
+       BIO_free(p7s);
 #ifndef S_SPLINT_S
        sk_X509_pop_free(cert, X509_free);
 #endif