git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8446 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-05-16 17:29:22 +00:00
parent 36320b9248
commit 22cb7b134a

View File

@ -96,7 +96,7 @@ SWITCH_DECLARE(int) switch_core_db_exec(switch_core_db_t *db, const char *sql, s
if (errmsg) {
*errmsg = err;
} else {
} else if (err) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "SQL ERR [%s]\n", err);
switch_core_db_free(err);
err = NULL;