mod_dingaling: fix leak in chat_send

This commit is contained in:
Mathieu Rene 2010-11-23 17:00:08 -05:00
parent 10cb487cb0
commit eb109a85d5
1 changed files with 1 additions and 0 deletions

View File

@ -521,6 +521,7 @@ static switch_status_t chat_send(const char *proto, const char *from, const char
} }
} }
ldl_handle_send_msg(profile->handle, (char *) from, (char *) to, NULL, switch_str_nil(body)); ldl_handle_send_msg(profile->handle, (char *) from, (char *) to, NULL, switch_str_nil(body));
switch_safe_free(ffrom);
} else { } else {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Profile %s\n", f_host ? f_host : "NULL"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Profile %s\n", f_host ? f_host : "NULL");
return SWITCH_STATUS_FALSE; return SWITCH_STATUS_FALSE;