Commit a4b03ad2 authored by Karl Heyes's avatar Karl Heyes

minor memory leak, and compiler warning cleanup

svn path=/icecast/trunk/icecast/; revision=9857
parent 76b8ec88
...@@ -64,8 +64,8 @@ static void *_slave_thread(void *arg); ...@@ -64,8 +64,8 @@ static void *_slave_thread(void *arg);
static thread_type *_slave_thread_id; static thread_type *_slave_thread_id;
static int slave_running = 0; static int slave_running = 0;
static int update_settings = 0; static int update_settings = 0;
volatile static unsigned int max_interval = 0; static volatile unsigned int max_interval = 0;
volatile static int rescan_relays = 0; static volatile int rescan_relays = 0;
relay_server *relay_free (relay_server *relay) relay_server *relay_free (relay_server *relay)
{ {
......
...@@ -1214,8 +1214,8 @@ void source_client_callback (client_t *client, void *arg) ...@@ -1214,8 +1214,8 @@ void source_client_callback (client_t *client, void *arg)
global_lock(); global_lock();
global.sources--; global.sources--;
global_unlock(); global_unlock();
source_clear_source (source);
source_free_source (source); source_free_source (source);
client_destroy (client);
return; return;
} }
client->refbuf = old_data->associated; client->refbuf = old_data->associated;
...@@ -1319,6 +1319,7 @@ static void *source_fallback_file (void *arg) ...@@ -1319,6 +1319,7 @@ static void *source_fallback_file (void *arg)
if (connection_complete_source (source, 0) < 0) if (connection_complete_source (source, 0) < 0)
break; break;
source_client_thread (source); source_client_thread (source);
httpp_destroy (parser);
} while (0); } while (0);
if (file) if (file)
fclose (file); fclose (file);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment