[Freeswitch-svn] [commit] r6893 - freeswitch/trunk/src/mod/event_handlers/mod_event_multicast
Freeswitch SVN
mikej at freeswitch.org
Tue Dec 18 22:29:07 EST 2007
Author: mikej
Date: Tue Dec 18 22:29:07 2007
New Revision: 6893
Modified:
freeswitch/trunk/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c
Log:
drip, drip, drip... whoops.
Modified: freeswitch/trunk/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c (original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c Tue Dec 18 22:29:07 2007
@@ -166,7 +166,7 @@
switch (event->event_id) {
case SWITCH_EVENT_LOG:
- return;
+ goto end;
default:
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Multicast-Sender", "%s", globals.hostname);
if (switch_event_serialize(event, &packet, SWITCH_TRUE) == SWITCH_STATUS_SUCCESS) {
@@ -180,6 +180,9 @@
break;
}
}
+end:
+ free(buf);
+ return;
}
@@ -318,6 +321,7 @@
}
globals.running = 0;
+ free(buf);
return SWITCH_STATUS_TERM;
}
More information about the Freeswitch-svn
mailing list