Index: res/res_odbc.c =================================================================== --- res/res_odbc.c (revision 235810) +++ res/res_odbc.c (working copy) @@ -153,6 +153,7 @@ if (!obj) { ast_log(LOG_WARNING, "Unable to retrieve database handle for table description '%s@%s'\n", tablename, database); + AST_RWLIST_UNLOCK(&odbc_tables); return NULL; }