]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix for #4136: Fix to unconditionally call destroy in daemon.c.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 6 Aug 2018 07:18:05 +0000 (07:18 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 6 Aug 2018 07:18:05 +0000 (07:18 +0000)
git-svn-id: file:///svn/unbound/trunk@4830 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/daemon.c
doc/Changelog

index a60f4409a484cdd9c801f671c34db2733c742ad6..3dc2553ba22881e277d4d969929ef770e3fdef99 100644 (file)
@@ -104,10 +104,8 @@ static int sig_record_reload = 0;
 /** cleaner ssl memory freeup */
 static void* comp_meth = NULL;
 #endif
-#ifdef LEX_HAS_YYLEX_DESTROY
 /** remove buffers for parsing and init */
 int ub_c_lex_destroy(void);
-#endif
 
 /** used when no other sighandling happens, so we don't die
   * when multiple signals in quick succession are sent to us. 
@@ -745,10 +743,8 @@ daemon_delete(struct daemon* daemon)
        SSL_CTX_free((SSL_CTX*)daemon->connect_sslctx);
 #endif
        free(daemon);
-#ifdef LEX_HAS_YYLEX_DESTROY
        /* lex cleanup */
        ub_c_lex_destroy();
-#endif
        /* libcrypto cleanup */
 #ifdef HAVE_SSL
 #  if defined(USE_GOST) && defined(HAVE_LDNS_KEY_EVP_UNLOAD_GOST)
index a4882a4e900a94c8c3b65152979a07b36f97114f..b9cb9cd58649c01b312719b78382f54d52824e4c 100644 (file)
@@ -1,3 +1,6 @@
+6 August 2018: Wouter
+       - Fix for #4136: Fix to unconditionally call destroy in daemon.c.
+
 3 August 2018: George
        - Expose if a query (or a subquery) was ratelimited (not src IP
          ratelimiting) to libunbound under 'ub_result.was_ratelimited'.