drip, drip, drip... whoops.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6893 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-12-19 03:29:07 +00:00
parent ddd0b667f7
commit d5679e0534
1 changed files with 5 additions and 1 deletions

View File

@ -166,7 +166,7 @@ static void event_handler(switch_event_t *event)
switch (event->event_id) { switch (event->event_id) {
case SWITCH_EVENT_LOG: case SWITCH_EVENT_LOG:
return; goto end;
default: default:
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Multicast-Sender", "%s", globals.hostname); switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Multicast-Sender", "%s", globals.hostname);
if (switch_event_serialize(event, &packet, SWITCH_TRUE) == SWITCH_STATUS_SUCCESS) { if (switch_event_serialize(event, &packet, SWITCH_TRUE) == SWITCH_STATUS_SUCCESS) {
@ -180,6 +180,9 @@ static void event_handler(switch_event_t *event)
break; break;
} }
} }
end:
free(buf);
return;
} }
@ -318,6 +321,7 @@ SWITCH_MODULE_RUNTIME_FUNCTION(mod_event_multicast_runtime)
} }
globals.running = 0; globals.running = 0;
free(buf);
return SWITCH_STATUS_TERM; return SWITCH_STATUS_TERM;
} }