[Freeswitch-svn] [commit] r13448 - freeswitch/trunk/src/mod/applications/mod_dptools
FreeSWITCH SVN
brian at freeswitch.org
Tue May 26 19:07:20 PDT 2009
Author: brian
Date: Tue May 26 21:07:20 2009
New Revision: 13448
Log:
fix more tiny leaks
Modified:
freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c
Modified: freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c Tue May 26 21:07:20 2009
@@ -2198,7 +2198,7 @@
switch_caller_profile_t *outbound_profile,
switch_core_session_t **new_session, switch_memory_pool_t **pool, switch_originate_flag_t flags)
{
- char *group;
+ char *group = NULL;
switch_call_cause_t cause = SWITCH_CAUSE_NONE;
char *template = NULL, *dest = NULL;
switch_originate_flag_t myflags = SOF_NONE;
@@ -2223,7 +2223,6 @@
goto done;
}
-
if (var_event && (skip=switch_event_get_header(var_event, "group_recurse_variables")) && switch_false(skip)) {
if ((var = switch_event_get_header(var_event, SWITCH_CALL_TIMEOUT_VARIABLE)) ||
(var = switch_event_get_header(var_event, "leg_timeout"))) {
@@ -2232,8 +2231,6 @@
var_event = NULL;
}
-
-
template = switch_mprintf("${group_call(%s@%s)}", group, domain);
if (session) {
@@ -2293,6 +2290,7 @@
}
switch_safe_free(template);
+ switch_safe_free(group);
if (cause == SWITCH_CAUSE_NONE) {
cause = SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER;
@@ -2616,7 +2614,7 @@
if (to) {
const char *v;
switch_stream_handle_t stream = { 0 };
- char *cmd, *arg;
+ char *cmd = NULL, *arg;
if (!(v = switch_core_get_variable(to))) {
v = to;
More information about the Freeswitch-svn
mailing list