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

remove leak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12068 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 17f9ced4
......@@ -270,7 +270,9 @@ SWITCH_DECLARE(const char *)Event::serialize(const char *format)
}
} else {
if (switch_event_serialize(event, &serialized_string, SWITCH_TRUE) == SWITCH_STATUS_SUCCESS) {
serialized_string = switch_mprintf("'%s'", serialized_string);
char *new_serialized_string = switch_mprintf("'%s'", serialized_string);
free(serialized_string);
serialized_string = new_serialized_string;
return serialized_string;
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论