]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
don't allocate pool we don't use.
authorMichael Jerris <mike@jerris.com>
Mon, 13 Oct 2008 16:13:41 +0000 (16:13 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 13 Oct 2008 16:13:41 +0000 (16:13 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9995 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_cpp.cpp

index e93fcbaf34b6f48c2da33aa937d15d263d95e6f2..de36eca1d3e492d192b39d40a429f4f0c2cf62ad 100644 (file)
@@ -893,7 +893,6 @@ SWITCH_DECLARE(void) CoreSession::destroy(void)
 SWITCH_DECLARE(int) CoreSession::originate(CoreSession *a_leg_session, char *dest, int timeout)
 {
 
-       switch_memory_pool_t *pool = NULL;
        switch_core_session_t *aleg_core_session = NULL;
        switch_call_cause_t cause;
 
@@ -911,11 +910,6 @@ SWITCH_DECLARE(int) CoreSession::originate(CoreSession *a_leg_session, char *des
        // use the 'a leg session' to do the thread swapping stuff.
     if (a_leg_session) a_leg_session->begin_allow_threads();
 
-       if (switch_core_new_memory_pool(&pool) != SWITCH_STATUS_SUCCESS) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "OH OH no pool\n");
-               goto failed;
-       }
-
        if (switch_ivr_originate(aleg_core_session, 
                                                         &session, 
                                                         &cause,