From 55b5b7eb807ef56076e375b9cf27d5c38f712e2e Mon Sep 17 00:00:00 2001 From: Karl Heyes Date: Wed, 17 Oct 2007 02:35:48 +0000 Subject: [PATCH] minor memory leak fixed svn path=/icecast/trunk/icecast/; revision=14004 --- src/cfgfile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cfgfile.c b/src/cfgfile.c index 1447d0fd..5b41e4ff 100644 --- a/src/cfgfile.c +++ b/src/cfgfile.c @@ -172,6 +172,7 @@ void config_clear(ice_config_t *c) free(c->config_filename); + xmlFree (c->server_id); if (c->location) xmlFree(c->location); if (c->admin) xmlFree(c->admin); if (c->source_password) xmlFree(c->source_password); @@ -188,6 +189,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->cert_file) xmlFree(c->cert_file); if (c->pidfile) xmlFree(c->pidfile); if (c->playlist_log) xmlFree(c->playlist_log);