diff --git a/devsupApp/src/dbrec.c b/devsupApp/src/dbrec.c index f1ef251..71cee61 100644 --- a/devsupApp/src/dbrec.c +++ b/devsupApp/src/dbrec.c @@ -273,7 +273,8 @@ static PyObject *pyRecord_enter(pyRecord *self) { dbScanLock(self->entry.precnode->precord); - Py_RETURN_NONE; + Py_INCREF(self); + return (PyObject*)self; } static PyObject *pyRecord_exit(pyRecord *self, PyObject *args)