/** cleaner ssl memory freeup */
static void* comp_meth = NULL;
#endif
+#ifdef LEX_HAS_YYLEX_DESTROY
+/** remove buffers for parsing and init */
+void 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.
free(daemon->pidfile);
free(daemon->env);
free(daemon);
+#ifdef LEX_HAS_YYLEX_DESTROY
+ /* lex cleanup */
+ ub_c_lex_destroy();
+#endif
/* libcrypto cleanup */
#if HAVE_DECL_SSL_COMP_GET_COMPRESSION_METHODS
sk_SSL_COMP_free(comp_meth);
int ub_c_wrap(void);
/** print error with file and line number */
void ub_c_error(const char *message);
-#ifdef LEX_HAS_YYLEX_DESTROY
-/** remove buffers for parsing and init */
-void ub_c_lex_destroy(void);
-#endif
/** init ports possible for use */
static void init_outgoing_availports(int* array, int num);
create_cfg_parser(cfg, fname, chroot);
ub_c_in = in;
ub_c_parse();
-#ifdef LEX_HAS_YYLEX_DESTROY
- ub_c_lex_destroy();
-#endif
fclose(in);
if(cfg_parser->errors != 0) {