Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3550a6 commit 5196c58Copy full SHA for 5196c58
1 file changed
Modules/cPickle.c
@@ -2875,7 +2875,8 @@ Instance_New(PyObject *cls, PyObject *args) {
2875
inst->in_class=(PyClassObject*)cls;
2876
Py_INCREF(cls);
2877
UNLESS (inst->in_dict=PyDict_New()) {
2878
- Py_DECREF(inst);
+ inst = (PyInstanceObject *) PyObject_AS_GC(inst);
2879
+ PyObject_DEL(inst);
2880
goto err;
2881
}
2882
PyObject_GC_Init(inst);
0 commit comments