Commit c31df042 authored by Victor Stinner's avatar Victor Stinner

Issue #18408: Oh, I was wrong: Pickler_New() must call Py_DECREF() to destroy

the newly created pickler, and not PyObject_GC_Del().
parent cc35159e
......@@ -782,7 +782,7 @@ _Pickler_New(void)
self->max_output_len);
if (self->memo == NULL || self->output_buffer == NULL) {
PyObject_GC_Del(self);
Py_DECREF(self);
return NULL;
}
return self;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment