[Freeswitch-svn] [commit] r9995 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Mon Oct 13 12:13:42 EDT 2008


Author: mikej
Date: Mon Oct 13 12:13:41 2008
New Revision: 9995

Modified:
   freeswitch/trunk/src/switch_cpp.cpp

Log:
don't allocate pool we don't use.

Modified: freeswitch/trunk/src/switch_cpp.cpp
==============================================================================
--- freeswitch/trunk/src/switch_cpp.cpp	(original)
+++ freeswitch/trunk/src/switch_cpp.cpp	Mon Oct 13 12:13:41 2008
@@ -893,7 +893,6 @@
 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 @@
 	// 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, 



More information about the Freeswitch-svn mailing list