]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
clear pointer on release
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 14 Apr 2011 22:44:18 +0000 (17:44 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 14 Apr 2011 22:50:48 +0000 (17:50 -0500)
src/switch_core_sqldb.c

index 7f2c9c712ff7ddb2c62f7490e5c9514689e9503b..940b1c4698a0bf7024218da31f6cd416ae35b626 100644 (file)
@@ -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;