mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-11 12:07:06 +00:00
FSCORE-617
This commit is contained in:
1 parent
c9e0a41090
commit
bc6334a610
9 files changed
+29
-20
No files matched your search
@@ -3500,7 +3500,7 @@ SWITCH_STANDARD_API(show_function)
|
||||
|
||||
if (errmsg) {
|
||||
stream->write_function(stream, "-ERR SQL Error [%s]\n", errmsg);
|
||||
switch_core_db_free(errmsg);
|
||||
free(errmsg);
|
||||
errmsg = NULL;
|
||||
} else if (help) {
|
||||
if (holder.count == 0)
|
||||
@@ -3513,7 +3513,7 @@ SWITCH_STANDARD_API(show_function)
|
||||
|
||||
if (errmsg) {
|
||||
stream->write_function(stream, "-ERR SQL Error [%s]\n", errmsg);
|
||||
switch_core_db_free(errmsg);
|
||||
free(errmsg);
|
||||
errmsg = NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -295,7 +295,7 @@ static switch_bool_t directory_execute_sql_callback(switch_mutex_t *mutex, char
|
||||
|
||||
if (errmsg) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "SQL ERR: [%s] %s\n", sql, errmsg);
|
||||
free(errmsg);
|
||||
switch_core_db_free(errmsg);
|
||||
}
|
||||
|
||||
if (db) {
|
||||
|
||||
@@ -379,7 +379,7 @@ SWITCH_STANDARD_APP(eavesdrop_function)
|
||||
switch_cache_db_release_db_handle(&db);
|
||||
if (errmsg) {
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Error: %s\n", errmsg);
|
||||
switch_core_db_free(errmsg);
|
||||
free(errmsg);
|
||||
if ((file = switch_channel_get_variable(channel, "eavesdrop_indicate_failed"))) {
|
||||
switch_ivr_play_file(session, NULL, file, NULL);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user