[Freeswitch-svn] [commit] r12906 - freeswitch/trunk/src/mod/event_handlers/mod_erlang_event

FreeSWITCH SVN andrew at freeswitch.org
Fri Apr 3 10:52:38 PDT 2009


Author: andrew
Date: Fri Apr  3 12:52:38 2009
New Revision: 12906

Log:
Whoops!


Modified:
   freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c

Modified: freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c	(original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c	Fri Apr  3 12:52:38 2009
@@ -1145,12 +1145,12 @@
 
 		session_element->process.type = ERLANG_PID;
 		memcpy(&session_element->process.pid, pid, sizeof(erlang_pid));
-		switch_safe_free(pid); /* malloced in handle_ref_tuple */
 		switch_set_flag(session_element, LFLAG_SESSION_ALIVE);
 		switch_clear_flag(session_element, LFLAG_OUTBOUND_INIT);
 		switch_clear_flag(session_element, LFLAG_WAITING_FOR_PID);
 
-		ei_link(listener, ei_self(listener->ec), pid); 
+		ei_link(listener, ei_self(listener->ec), pid);
+		switch_safe_free(pid); /* malloced in handle_ref_tuple */
 	}
 	return session_element;
 }



More information about the Freeswitch-svn mailing list