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

init mem

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9141 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 13d880e9
...@@ -486,11 +486,12 @@ static switch_status_t read_packet(listener_t *listener, switch_event_t **event, ...@@ -486,11 +486,12 @@ static switch_status_t read_packet(listener_t *listener, switch_event_t **event,
clen = atoi(val); clen = atoi(val);
if (clen > 0) { if (clen > 0) {
char *body = malloc(clen + 1); char *body;
char *ptr = body; char *ptr;
switch_assert(body); switch_zmalloc(body, clen + 1);
ptr = body;
while(clen > 0) { while(clen > 0) {
mlen = clen; mlen = clen;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论