提交 e7d29df8 authored 作者: Anthony Minessale's avatar Anthony Minessale

fix mem leak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7308 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 d4a2ab28
...@@ -481,7 +481,7 @@ static switch_status_t read_packet(listener_t * listener, switch_event_t **event ...@@ -481,7 +481,7 @@ static switch_status_t read_packet(listener_t * listener, switch_event_t **event
switch_xml_free(xml); switch_xml_free(xml);
} else { } else {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "XML ERROR!\n"); 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 ...@@ -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_socket_send(listener->sock, listener->ebuf, &len);
switch_safe_free(listener->ebuf); switch_safe_free(listener->ebuf);
endloop:
switch_event_destroy(&pevent);
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论