mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-01-03 14:56:34 -05:00
Fix: memory leak now freeing null_device and global source_password
This commit is contained in:
parent
d3bba3638e
commit
8702999204
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user