]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
doh
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 20 Mar 2009 14:28:36 +0000 (14:28 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 20 Mar 2009 14:28:36 +0000 (14:28 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12683 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_memory.c

index d12ad4e62513323e397564b3a6983106dcd1a21e..d16e1159c510eb2e3765e3da04eb628c71cbeb86 100644 (file)
@@ -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