]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 268933 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 8 Jun 2010 06:58:22 +0000 (06:58 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 8 Jun 2010 06:58:22 +0000 (06:58 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

........
  r268933 | tilghman | 2010-06-08 01:57:24 -0500 (Tue, 08 Jun 2010) | 2 lines

  Release list lock before returning on error.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@268934 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_config_sqlite.c

index 56ff7a1bca6005b2d20fd046e86640ac211f6b5e..66f3d97d10dc4172ded36041f1f5f5396ea6f84f 100644 (file)
@@ -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;
        }