diff --git a/doc/Changelog b/doc/Changelog index 7824ce0db..601e1d2f7 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ 24 August 2009: Wouter - cleaner memory allocation on exit. autotrust test routines. + - free all memory on program exit, fix for ssl and flex. 21 August 2009: Wouter - autotrust: debug routines. Read,write and conversions work. diff --git a/util/config_file.c b/util/config_file.c index 9a4953d5c..a74f2e62f 100644 --- a/util/config_file.c +++ b/util/config_file.c @@ -61,6 +61,8 @@ int ub_c_lex(void); int ub_c_wrap(void); /** print error with file and line number */ void ub_c_error(const char *message); +/** remove buffers for parsing and init */ +void ub_c_lex_destroy(void); /** init ports possible for use */ static void init_outgoing_availports(int* array, int num); @@ -464,6 +466,7 @@ config_read(struct config_file* cfg, const char* filename, const char* chroot) create_cfg_parser(cfg, fname, chroot); ub_c_in = in; ub_c_parse(); + ub_c_lex_destroy(); fclose(in); if(cfg_parser->errors != 0) {