mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-04-18 00:48:43 -04: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);
|
xmlFree(c->webroot_dir);
|
||||||
if (c->adminroot_dir && c->adminroot_dir != CONFIG_DEFAULT_ADMINROOT_DIR)
|
if (c->adminroot_dir && c->adminroot_dir != CONFIG_DEFAULT_ADMINROOT_DIR)
|
||||||
xmlFree(c->adminroot_dir);
|
xmlFree(c->adminroot_dir);
|
||||||
if (c->pidfile)
|
if (c->pidfile)
|
||||||
xmlFree(c->pidfile);
|
xmlFree(c->pidfile);
|
||||||
if (c->access_log && c->access_log != CONFIG_DEFAULT_ACCESS_LOG)
|
if (c->access_log && c->access_log != CONFIG_DEFAULT_ACCESS_LOG)
|
||||||
xmlFree(c->access_log);
|
xmlFree(c->access_log);
|
||||||
@ -215,6 +215,14 @@ void config_clear(ice_config_t *c)
|
|||||||
free(dirnode);
|
free(dirnode);
|
||||||
dirnode = nextdirnode;
|
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));
|
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);
|
avl_tree_free(source->client_tree, _free_client);
|
||||||
source->format->free_plugin(source->format);
|
source->format->free_plugin(source->format);
|
||||||
#ifdef USE_YP
|
#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]);
|
yp_destroy_ypdata(source->ypdata[i]);
|
||||||
|
source->ypdata[i] = NULL;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
util_dict_free(source->audio_info);
|
util_dict_free(source->audio_info);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user