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:
parent
76b8ec882f
commit
a4b03ad26c
@ -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)
|
|||||||
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)
|
|||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user