--- Python-3.3.2-orig/Modules/_sqlite/connection.c 2013-05-15 20:32:58.000000000 +0400 +++ Python-3.3.2/Modules/_sqlite/connection.c 2013-08-02 00:49:59.884765600 +0400 @@ -712,9 +712,12 @@ } error: + { #ifdef WITH_THREAD PyGILState_Release(threadstate); #endif + ; + } } static void _pysqlite_drop_unused_statement_references(pysqlite_Connection* self)