FS-10387: [core] High memory usage with mod_sofia, osmo-nitb and DTX setting active #resolve

This commit is contained in:
Anthony Minessale committed 2017-06-22 15:48:20 -05:00
1 parent 7c19615890
commit e78f3f0c04
3 files changed
+22 -1

No files matched your search

+2 -1
View File
@@ -190,8 +190,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_perform_get_partner(switch_c
const char *file, const char *func, int line)
{
const char *uuid;
char uuid_str[SWITCH_UUID_FORMATTED_LENGTH + 1];
if ((uuid = switch_channel_get_partner_uuid(session->channel))) {
if ((uuid = switch_channel_get_partner_uuid_copy(session->channel, uuid_str, sizeof(uuid_str)))) {
if ((*partner = switch_core_session_perform_locate(uuid, file, func, line))) {
return SWITCH_STATUS_SUCCESS;
}