提交 1a465c23 authored 作者: Rupa Schomaker's avatar Rupa Schomaker

don't free the pool if it hasn't been created


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14174 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 c263e616
......@@ -443,8 +443,10 @@ SWITCH_STANDARD_APP(cidlookup_app_function)
switch_goto_status(SWITCH_STATUS_SUCCESS, done);
done:
if (event) {
switch_event_destroy(&event);
if (!session) {
}
if (!session && pool) {
switch_core_destroy_memory_pool(&pool);
}
}
......@@ -510,8 +512,10 @@ usage:
done:
switch_safe_free(mydata);
if (event) {
switch_event_destroy(&event);
if (!session) {
}
if (!session && pool) {
switch_core_destroy_memory_pool(&pool);
}
return status;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论