mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
small YP memory cleanup
svn path=/trunk/icecast/; revision=5842
This commit is contained in:
parent
66082000b4
commit
ebf6603c07
@ -147,7 +147,7 @@ void config_clear(ice_config_t *c)
|
||||
xmlFree(c->webroot_dir);
|
||||
if (c->adminroot_dir && c->adminroot_dir != CONFIG_DEFAULT_ADMINROOT_DIR)
|
||||
xmlFree(c->adminroot_dir);
|
||||
if (c->pidfile)
|
||||
if (c->pidfile)
|
||||
xmlFree(c->pidfile);
|
||||
if (c->access_log && c->access_log != CONFIG_DEFAULT_ACCESS_LOG)
|
||||
xmlFree(c->access_log);
|
||||
@ -215,6 +215,14 @@ void config_clear(ice_config_t *c)
|
||||
free(dirnode);
|
||||
dirnode = nextdirnode;
|
||||
}
|
||||
#ifdef HAVE_YP
|
||||
i = 0;
|
||||
while (i < c->num_yp_directories)
|
||||
{
|
||||
xmlFree (c->yp_url[i]);
|
||||
i++;
|
||||
}
|
||||
#endif
|
||||
|
||||
memset(c, 0, sizeof(ice_config_t));
|
||||
}
|
||||
|
@ -219,8 +219,10 @@ int source_free_source(void *key)
|
||||
avl_tree_free(source->client_tree, _free_client);
|
||||
source->format->free_plugin(source->format);
|
||||
#ifdef USE_YP
|
||||
for (i=0; i<source->num_yp_directories; i++) {
|
||||
for (i=0; i<source->num_yp_directories; i++)
|
||||
{
|
||||
yp_destroy_ypdata(source->ypdata[i]);
|
||||
source->ypdata[i] = NULL;
|
||||
}
|
||||
#endif
|
||||
util_dict_free(source->audio_info);
|
||||
|
Loading…
Reference in New Issue
Block a user