]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
less memory leaks.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 24 Aug 2009 15:56:45 +0000 (15:56 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 24 Aug 2009 15:56:45 +0000 (15:56 +0000)
git-svn-id: file:///svn/unbound/trunk@1773 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/config_file.c

index 7824ce0db4f6069b5a9041e8f7936a0fc7106ca9..601e1d2f7a29f882043bb7f6a84756dd0471b684 100644 (file)
@@ -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.
index 9a4953d5c082a03eb3b7eeb6dfa00cf1e56b2b31..a74f2e62ff29584133419bbbcfa8f7edc402e3c6 100644 (file)
@@ -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) {