Commits

Gerhard Häring  committed 408d2a5

Fixed a memory leak that was introduced with incorrect usage of the Python weak
reference API in pysqlite 2.2.1.

Bumbed pysqlite version number to upcoming pysqlite 2.3.1 release.

  • Participants
  • Parent commits f0885fe
  • Branches legacy-trunk

Comments (0)

Files changed (2)

File Modules/_sqlite/connection.c

 
     for (i = 0; i < PyList_Size(self->statements); i++) {
         weakref = PyList_GetItem(self->statements, i);
-        if (weakref != Py_None) {
+        if (PyWeakref_GetObject(weakref) != Py_None) {
             if (PyList_Append(new_list, weakref) != 0) {
                 Py_DECREF(new_list);
                 return;

File Modules/_sqlite/module.h

 #define PYSQLITE_MODULE_H
 #include "Python.h"
 
-#define PYSQLITE_VERSION "2.3.0"
+#define PYSQLITE_VERSION "2.3.1"
 
 extern PyObject* Error;
 extern PyObject* Warning;