From: Wouter Wijngaards Date: Mon, 24 Aug 2009 15:56:45 +0000 (+0000) Subject: less memory leaks. X-Git-Tag: release-1.4.0rc1~130 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e176a0aa67523f25a089317690b9731b9380d87;p=thirdparty%2Funbound.git less memory leaks. git-svn-id: file:///svn/unbound/trunk@1773 be551aaa-1e26-0410-a405-d3ace91eadb9 --- 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) {