Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 3eb8c125 authored by rswindell's avatar rswindell

Created free_cfg function to free all dynamically allocated configuration parameters.

parent ba22ffb3
......@@ -75,6 +75,7 @@ BOOL read_attr_cfg(scfg_t* cfg, read_cfg_text_t* txt);
void prep_path(char* base, char* path);
void make_data_dirs(scfg_t* cfg);
void free_cfg(scfg_t* cfg);
void free_node_cfg(scfg_t* cfg);
void free_main_cfg(scfg_t* cfg);
void free_xtrn_cfg(scfg_t* cfg);
......
......@@ -879,6 +879,16 @@ BOOL read_msgs_cfg(scfg_t* cfg, read_cfg_text_t* txt)
#endif
void free_cfg(scfg_t* cfg)
{
free_node_cfg(cfg);
free_main_cfg(cfg);
free_msgs_cfg(cfg);
free_file_cfg(cfg);
free_chat_cfg(cfg);
free_xtrn_cfg(cfg);
}
void free_node_cfg(scfg_t* cfg)
{
FREE_AND_NULL(cfg->mdm_result);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment