git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12633 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene 2009-03-16 22:44:27 +00:00
parent 8ed510458f
commit a7d7c0ba88
1 changed files with 3 additions and 4 deletions

View File

@ -3332,14 +3332,13 @@ int sofia_glue_init_sql(sofia_profile_t *profile)
void sofia_glue_sql_close(sofia_profile_t *profile)
{
#ifdef SWITCH_HAVE_ODBC
if (profile->odbc_dsn) {
if (profile->master_odbc) {
switch_odbc_handle_destroy(&profile->master_odbc);
return;
}
#endif
#else
switch_core_db_close(profile->master_db);
profile->master_db = NULL;
#endif
}