提交 e4d80710 authored 作者: Raymond Chandler's avatar Raymond Chandler

CID: 1210646

上级 fd4364cd
...@@ -226,6 +226,8 @@ SWITCH_STANDARD_APP(translate_app_function) ...@@ -226,6 +226,8 @@ SWITCH_STANDARD_APP(translate_app_function)
switch_memory_pool_t *pool; switch_memory_pool_t *pool;
switch_event_t *event = NULL; switch_event_t *event = NULL;
switch_assert(session);
if (!(mydata = switch_core_session_strdup(session, data))) { if (!(mydata = switch_core_session_strdup(session, data))) {
goto end; goto end;
} }
...@@ -255,11 +257,10 @@ SWITCH_STANDARD_APP(translate_app_function) ...@@ -255,11 +257,10 @@ SWITCH_STANDARD_APP(translate_app_function)
} }
end: end:
if (!session) {
if (pool) { if (pool) {
switch_core_destroy_memory_pool(&pool); switch_core_destroy_memory_pool(&pool);
} }
}
return; return;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论