mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 13:58:32 +00:00
CID: 1210646
This commit is contained in:
1 parent
fd4364cd43
commit
e4d807108c
1 file changed
+5
-4
@@ -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)
|
|||||||
}
|
}
|
||||||
|
|
||||||
end:
|
end:
|
||||||
if (!session) {
|
if (pool) {
|
||||||
if (pool) {
|
switch_core_destroy_memory_pool(&pool);
|
||||||
switch_core_destroy_memory_pool(&pool);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user