mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-04 17:51:03 +00:00
doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6171 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
4346dde7f7
commit
3c470c8943
@ -1390,10 +1390,12 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables(switch_channel_t *channel
|
|||||||
if (switch_api_execute(vname, vval, channel->session, &stream) == SWITCH_STATUS_SUCCESS) {
|
if (switch_api_execute(vname, vval, channel->session, &stream) == SWITCH_STATUS_SUCCESS) {
|
||||||
func_val = stream.data;
|
func_val = stream.data;
|
||||||
sub_val = func_val;
|
sub_val = func_val;
|
||||||
|
} else {
|
||||||
|
free(stream.data);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_safe_free(expanded);
|
switch_safe_free(expanded);
|
||||||
free(stream.data);
|
|
||||||
} else {
|
} else {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Memory Error!\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Memory Error!\n");
|
||||||
free(data);
|
free(data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user