[Freeswitch-trunk] [commit] r6171 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Tue Nov 6 20:33:31 EST 2007
Author: anthm
Date: Tue Nov 6 20:33:31 2007
New Revision: 6171
Modified:
freeswitch/trunk/src/switch_channel.c
Log:
doh
Modified: freeswitch/trunk/src/switch_channel.c
==============================================================================
--- freeswitch/trunk/src/switch_channel.c (original)
+++ freeswitch/trunk/src/switch_channel.c Tue Nov 6 20:33:31 2007
@@ -1390,10 +1390,12 @@
if (switch_api_execute(vname, vval, channel->session, &stream) == SWITCH_STATUS_SUCCESS) {
func_val = stream.data;
sub_val = func_val;
+ } else {
+ free(stream.data);
}
switch_safe_free(expanded);
- free(stream.data);
+
} else {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Memory Error!\n");
free(data);
More information about the Freeswitch-trunk
mailing list