[asterisk-commits] tilghman: trunk r268933 - /trunk/res/res_config_sqlite.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jun 8 01:57:28 CDT 2010
Author: tilghman
Date: Tue Jun 8 01:57:24 2010
New Revision: 268933
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=268933
Log:
Release list lock before returning on error.
Modified:
trunk/res/res_config_sqlite.c
Modified: trunk/res/res_config_sqlite.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_config_sqlite.c?view=diff&rev=268933&r1=268932&r2=268933
==============================================================================
--- trunk/res/res_config_sqlite.c (original)
+++ trunk/res/res_config_sqlite.c Tue Jun 8 01:57:24 2010
@@ -686,12 +686,14 @@
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;
}
More information about the asterisk-commits
mailing list