diff options
Diffstat (limited to 'Objects/classobject.c')
-rw-r--r-- | Objects/classobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c index 00cfdde..d7b4c1e 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -453,6 +453,7 @@ PyInstance_NewRaw(PyObject *klass, PyObject *dict) Py_DECREF(dict); return NULL; } + inst->in_weakreflist = NULL; Py_INCREF(klass); inst->in_class = (PyClassObject *)klass; inst->in_dict = dict; |