1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

minor memory leak, and compiler warning cleanup

svn path=/icecast/trunk/icecast/; revision=9857
This commit is contained in:
Karl Heyes 2005-08-27 01:01:29 +00:00
parent 76b8ec882f
commit a4b03ad26c
2 changed files with 4 additions and 3 deletions

View File

@ -64,8 +64,8 @@ static void *_slave_thread(void *arg);
static thread_type *_slave_thread_id;
static int slave_running = 0;
static int update_settings = 0;
volatile static unsigned int max_interval = 0;
volatile static int rescan_relays = 0;
static volatile unsigned int max_interval = 0;
static volatile int rescan_relays = 0;
relay_server *relay_free (relay_server *relay)
{

View File

@ -1214,8 +1214,8 @@ void source_client_callback (client_t *client, void *arg)
global_lock();
global.sources--;
global_unlock();
source_clear_source (source);
source_free_source (source);
client_destroy (client);
return;
}
client->refbuf = old_data->associated;
@ -1319,6 +1319,7 @@ static void *source_fallback_file (void *arg)
if (connection_complete_source (source, 0) < 0)
break;
source_client_thread (source);
httpp_destroy (parser);
} while (0);
if (file)
fclose (file);