[Freeswitch-svn] [commit] r7735 - freeswitch/trunk/src/mod/applications/mod_dptools
Author: anthm Date: Mon Feb 25 14:45:07 2008 New Revision: 7735 Modified: freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c Log: fix logic err in user channel 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 Mon Feb 25 14:45:07 2008 @@ -1337,7 +1337,7 @@ static switch_call_cause_t cause = SWITCH_CAUSE_UNALLOCATED; unsigned int timelimit = 60; switch_channel_t *new_channel = NULL; - switch_event_t *params; + switch_event_t *params = NULL; if (switch_strlen_zero(outbound_profile->destination_number)) { goto done; } @@ -1452,7 +1452,9 @@ switch_xml_free(xml); } - switch_event_destroy(¶ms); + if (params) { + switch_event_destroy(¶ms); + } switch_safe_free(user);
participants (1)
-
Freeswitch SVN