From 6d0c973ec56648b26e65ea8a61b7cf4e8463fcd5 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 20 Mar 2009 14:28:36 +0000 Subject: [PATCH] doh git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12683 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_core_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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