From: Anthony Minessale Date: Fri, 20 Mar 2009 14:28:36 +0000 (+0000) Subject: doh X-Git-Tag: v1.0.4~1461 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d0c973ec56648b26e65ea8a61b7cf4e8463fcd5;p=thirdparty%2Ffreeswitch.git doh git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12683 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core_memory.c b/src/switch_core_memory.c index d12ad4e625..d16e1159c5 100644 --- a/src/switch_core_memory.c +++ b/src/switch_core_memory.c @@ -243,7 +243,7 @@ SWITCH_DECLARE(char *) switch_core_perform_session_strdup(switch_core_session_t switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, NULL, SWITCH_LOG_CONSOLE, "Sess Strdup Allocate %d\n", (int) len); #endif - duped = strdup(todup); + duped = apr_pstrdup(session->pool, todup); switch_assert(duped != NULL); #ifdef LOCK_MORE