From f7516e6b2b0ba3feeafad5bdbac2239f34c5a66d Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Thu, 13 Sep 2018 12:49:37 +0000 Subject: [PATCH] - nicer bio free code in unbound-anchor. git-svn-id: file:///svn/unbound/trunk@4905 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 1 + smallapp/unbound-anchor.c | 11 ++--------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/doc/Changelog b/doc/Changelog index eaa019a3e..782a92fb8 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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 diff --git a/smallapp/unbound-anchor.c b/smallapp/unbound-anchor.c index 36f826668..fbd8f130f 100644 --- a/smallapp/unbound-anchor.c +++ b/smallapp/unbound-anchor.c @@ -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 -- 2.47.3