fix mem leak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7308 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-01-20 22:39:08 +00:00
parent d4a2ab28a9
commit e7d29df822
1 changed files with 4 additions and 1 deletions

View File

@ -481,7 +481,7 @@ static switch_status_t read_packet(listener_t * listener, switch_event_t **event
switch_xml_free(xml);
} else {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "XML ERROR!\n");
continue;
goto endloop;
}
}
@ -496,6 +496,9 @@ static switch_status_t read_packet(listener_t * listener, switch_event_t **event
switch_socket_send(listener->sock, listener->ebuf, &len);
switch_safe_free(listener->ebuf);
endloop:
switch_event_destroy(&pevent);
}
}
}