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

FreeSWITCH SVN andrew at freeswitch.org
Tue Mar 10 10:47:35 PDT 2009


Author: andrew
Date: Tue Mar 10 12:47:35 2009
New Revision: 12548

Log:
oops


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

Modified: freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/handle_msg.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/handle_msg.c	(original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/handle_msg.c	Tue Mar 10 12:47:35 2009
@@ -191,6 +191,7 @@
 				switch_core_hash_delete(listener->fetch_reply_hash, uuid_str);
 				switch_core_hash_insert(listener->fetch_reply_hash, uuid_str, nbuf);
 				ei_x_encode_atom(rbuf, "ok");
+				return SWITCH_STATUS_SUCCESS;
 			} else {
 				switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Found filled slot for %s\n", uuid_str);
 				ei_x_encode_tuple_header(rbuf, 2);
@@ -206,6 +207,8 @@
 		}
 
 		/*switch_core_hash_insert(listener->fetch_reply_hash, uuid_str, nbuf);*/
+		free(nbuf->buff);
+		free(nbuf);
 	}
 	return SWITCH_STATUS_SUCCESS;
 }



More information about the Freeswitch-trunk mailing list