mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-07 13:35:00 +00:00
[mod_amqp] Fix memory leaks on command queue name and parsing configure file
This commit is contained in:
parent
ee1dc921fe
commit
e632759ae8
@ -274,11 +274,11 @@ static void mod_amqp_command_response(mod_amqp_command_profile_t *profile, char
|
|||||||
|
|
||||||
void * SWITCH_THREAD_FUNC mod_amqp_command_thread(switch_thread_t *thread, void *data)
|
void * SWITCH_THREAD_FUNC mod_amqp_command_thread(switch_thread_t *thread, void *data)
|
||||||
{
|
{
|
||||||
|
amqp_bytes_t queueName = { 0, NULL };
|
||||||
mod_amqp_command_profile_t *profile = (mod_amqp_command_profile_t *) data;
|
mod_amqp_command_profile_t *profile = (mod_amqp_command_profile_t *) data;
|
||||||
|
|
||||||
while (profile->running) {
|
while (profile->running) {
|
||||||
amqp_queue_declare_ok_t *recv_queue;
|
amqp_queue_declare_ok_t *recv_queue;
|
||||||
amqp_bytes_t queueName = { 0, NULL };
|
|
||||||
|
|
||||||
/* Ensure we have an AMQP connection */
|
/* Ensure we have an AMQP connection */
|
||||||
if (!profile->conn_active) {
|
if (!profile->conn_active) {
|
||||||
|
@ -193,6 +193,7 @@ switch_status_t mod_amqp_do_config(switch_bool_t reload)
|
|||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Unable to locate logging section for mod_amqp\n" );
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Unable to locate logging section for mod_amqp\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch_xml_free(xml);
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user