mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
less memory leaks.
git-svn-id: file:///svn/unbound/trunk@1773 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
78ed2ec08a
commit
4e176a0aa6
2 changed files with 4 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
24 August 2009: Wouter
|
24 August 2009: Wouter
|
||||||
- cleaner memory allocation on exit. autotrust test routines.
|
- cleaner memory allocation on exit. autotrust test routines.
|
||||||
|
- free all memory on program exit, fix for ssl and flex.
|
||||||
|
|
||||||
21 August 2009: Wouter
|
21 August 2009: Wouter
|
||||||
- autotrust: debug routines. Read,write and conversions work.
|
- autotrust: debug routines. Read,write and conversions work.
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,8 @@ int ub_c_lex(void);
|
||||||
int ub_c_wrap(void);
|
int ub_c_wrap(void);
|
||||||
/** print error with file and line number */
|
/** print error with file and line number */
|
||||||
void ub_c_error(const char *message);
|
void ub_c_error(const char *message);
|
||||||
|
/** remove buffers for parsing and init */
|
||||||
|
void ub_c_lex_destroy(void);
|
||||||
|
|
||||||
/** init ports possible for use */
|
/** init ports possible for use */
|
||||||
static void init_outgoing_availports(int* array, int num);
|
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);
|
create_cfg_parser(cfg, fname, chroot);
|
||||||
ub_c_in = in;
|
ub_c_in = in;
|
||||||
ub_c_parse();
|
ub_c_parse();
|
||||||
|
ub_c_lex_destroy();
|
||||||
fclose(in);
|
fclose(in);
|
||||||
|
|
||||||
if(cfg_parser->errors != 0) {
|
if(cfg_parser->errors != 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue