Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
spr0cketeer
Icecast-Server
Commits
87029992
Commit
87029992
authored
Dec 20, 2014
by
Philipp Schafft
🦁
Browse files
Fix: memory leak now freeing null_device and global source_password
parent
d3bba363
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cfgfile.c
View file @
87029992
...
...
@@ -421,6 +421,7 @@ void config_clear(ice_config_t *c)
if
(
c
->
log_dir
)
xmlFree
(
c
->
log_dir
);
if
(
c
->
webroot_dir
)
xmlFree
(
c
->
webroot_dir
);
if
(
c
->
adminroot_dir
)
xmlFree
(
c
->
adminroot_dir
);
if
(
c
->
null_device
)
xmlFree
(
c
->
null_device
);
if
(
c
->
cert_file
)
xmlFree
(
c
->
cert_file
);
if
(
c
->
cipher_list
)
xmlFree
(
c
->
cipher_list
);
if
(
c
->
pidfile
)
...
...
@@ -821,6 +822,7 @@ static void _parse_root(xmlDocPtr doc, xmlNodePtr node,
}
else
{
ICECAST_LOG_ERROR
(
"Can not find nor create default mount but global lagency source password set. Bad."
);
}
xmlFree
(
source_password
);
}
/* drop the first listening socket details if more than one is defined, as we only
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment