diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-06-08 06:57:24 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-06-08 06:57:24 +0000 |
commit | 523e4e50bf0a61d113c6cba99127c85c64f3ab2c (patch) | |
tree | a047da16c96b77ef2daf6ea7a5c2fff12958a448 /res/res_config_sqlite.c | |
parent | 8872926df7acdfa78530049a0dc63900590c3123 (diff) |
Release list lock before returning on error.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@268933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_config_sqlite.c')
-rw-r--r-- | res/res_config_sqlite.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_config_sqlite.c b/res/res_config_sqlite.c index 39564100c..ef1e1808c 100644 --- a/res/res_config_sqlite.c +++ b/res/res_config_sqlite.c @@ -686,12 +686,14 @@ static struct sqlite_cache_tables *find_table(const char *tablename) ast_log(LOG_WARNING, "SQLite error %d: %s\n", err, errstr); ast_free(errstr); free_table(tblptr); + AST_RWLIST_UNLOCK(&sqlite_tables); return NULL; } ast_mutex_unlock(&mutex); if (AST_LIST_EMPTY(&(tblptr->columns))) { free_table(tblptr); + AST_RWLIST_UNLOCK(&sqlite_tables); return NULL; } |