From: Anthony Minessale Date: Thu, 14 Apr 2011 22:44:18 +0000 (-0500) Subject: clear pointer on release X-Git-Tag: v1.2-rc1~118^2~117 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aaef33cccfecfcd3b2cf3a5782db6611d108ae4a;p=thirdparty%2Ffreeswitch.git clear pointer on release --- diff --git a/src/switch_core_sqldb.c b/src/switch_core_sqldb.c index 7f2c9c712f..940b1c4698 100644 --- a/src/switch_core_sqldb.c +++ b/src/switch_core_sqldb.c @@ -289,6 +289,8 @@ SWITCH_DECLARE(void) switch_cache_db_release_db_handle(switch_cache_db_handle_t switch_mutex_lock(sql_manager.dbh_mutex); (*dbh)->last_used = switch_epoch_time_now(NULL); + (*dbh)->io_mutex = NULL; + if ((*dbh)->use_count) { if (--(*dbh)->use_count == 0) { (*dbh)->thread_hash = 1;