Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
3eb8c125
Commit
3eb8c125
authored
24 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Created free_cfg function to free all dynamically allocated configuration parameters.
parent
ba22ffb3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sbbs3/scfglib.h
+1
-0
1 addition, 0 deletions
src/sbbs3/scfglib.h
src/sbbs3/scfglib1.c
+10
-0
10 additions, 0 deletions
src/sbbs3/scfglib1.c
with
11 additions
and
0 deletions
src/sbbs3/scfglib.h
+
1
−
0
View file @
3eb8c125
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/scfglib1.c
+
10
−
0
View file @
3eb8c125
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment