From: Brian West Date: Thu, 13 May 2010 02:23:09 +0000 (-0500) Subject: dup off the right pool X-Git-Tag: git2svn-syncpoint-master~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=848a4a69094e59a37d0df565293de164d5e9a019;p=thirdparty%2Ffreeswitch.git dup off the right pool --- diff --git a/src/switch_channel.c b/src/switch_channel.c index 77838a8ca6..b97829d6ef 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -2837,12 +2837,12 @@ SWITCH_DECLARE(switch_status_t) switch_channel_pass_callee_id(switch_channel_t * switch_mutex_lock(other_channel->profile_mutex); if (!zstr(channel->caller_profile->callee_id_name)) { - other_channel->caller_profile->callee_id_name = switch_core_strdup(channel->caller_profile->pool, channel->caller_profile->callee_id_name); + other_channel->caller_profile->callee_id_name = switch_core_strdup(other_channel->caller_profile->pool, channel->caller_profile->callee_id_name); x++; } if (!zstr(channel->caller_profile->callee_id_number)) { - other_channel->caller_profile->callee_id_number = switch_core_strdup(channel->caller_profile->pool, channel->caller_profile->callee_id_number); + other_channel->caller_profile->callee_id_number = switch_core_strdup(other_channel->caller_profile->pool, channel->caller_profile->callee_id_number); x++; }