Segfault-Inc / Multicorn

Data Access Library
https://multicorn.org/
PostgreSQL License
700 stars 145 forks source link

writable API - Fatal Python error: deallocating None #64

Closed trinque closed 10 years ago

trinque commented 10 years ago

Possibly due to an incorrect call to Py_DECREF in multicornExecForeignInsert (update and delete may also be affected), the refcount of None decreases by 6 references on each insert, eventually causing the above error.

Running log_to_postgres(sys.getrefcount(None)) indicates the decreasing refcount.

rdunklau commented 10 years ago

Fixed in 993f5344c6949c3b6284e0228025b79d188a7793