print message before destroying obj

This commit is contained in:
Anthony Minessale 2013-03-22 10:28:15 -05:00
parent 5406fb8a11
commit 0ca2c2b0e7
1 changed files with 1 additions and 1 deletions

View File

@ -366,8 +366,8 @@ Dbh::~Dbh()
bool Dbh::release() bool Dbh::release()
{ {
if (dbh) { if (dbh) {
switch_cache_db_release_db_handle(&dbh);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "DBH handle %p released.\n", (void *) dbh); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "DBH handle %p released.\n", (void *) dbh);
switch_cache_db_release_db_handle(&dbh);
return true; return true;
} }