53 |
54 |
54 return conf; |
55 return conf; |
55 } |
56 } |
56 |
57 |
57 void free_init_config(InitConfig *conf) { |
58 void free_init_config(InitConfig *conf) { |
58 if(conf->directives != NULL) { |
|
59 ucx_dlist_free(conf->directives); |
|
60 } |
|
61 if(conf->parser.lines != NULL) { |
|
62 ucx_dlist_free(conf->parser.lines); |
|
63 } |
|
64 ucx_mempool_free(conf->parser.mp); |
59 ucx_mempool_free(conf->parser.mp); |
65 free(conf); |
60 free(conf); |
66 } |
61 } |
67 |
62 |
68 int initconf_parse(void *p, ConfigLine *begin, ConfigLine *end, sstr_t line) { |
63 int initconf_parse(void *p, ConfigLine *begin, ConfigLine *end, sstr_t line) { |