Index: cdr/cdr_sqlite3_custom.c =================================================================== --- cdr/cdr_sqlite3_custom.c (revision 89127) +++ cdr/cdr_sqlite3_custom.c (working copy) @@ -94,6 +94,7 @@ if (!(mappingvar = ast_variable_browse(cfg, "master"))) { /* nothing configured */ + ast_mutex_unlock(&lock); ast_config_destroy(cfg); return 0; } @@ -113,6 +114,7 @@ else { ast_log(LOG_WARNING, "%s: Column names not specified. Module not loaded.\n", name); + ast_mutex_unlock(&lock); ast_config_destroy(cfg); return -1; } @@ -122,6 +124,7 @@ ast_copy_string(values, tmp, sizeof(values)); else { ast_log(LOG_WARNING, "%s: Values not specified. Module not loaded.\n", name); + ast_mutex_unlock(&lock); ast_config_destroy(cfg); return -1; }