diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2013-07-11 20:56:25 (GMT) |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2013-07-11 20:56:25 (GMT) |
| commit | 68c8ea25f1b4354cc073d2ebcd5f8cc8acef0b42 (patch) | |
| tree | fdc8af6dd9162732feba45f4cabdb486c66194a1 /Python/pystrcmp.c | |
| parent | 3bf5f530d91c8b55c10e10153d8224e72ed7b279 (diff) | |
| download | cpython-68c8ea25f1b4354cc073d2ebcd5f8cc8acef0b42.zip cpython-68c8ea25f1b4354cc073d2ebcd5f8cc8acef0b42.tar.gz cpython-68c8ea25f1b4354cc073d2ebcd5f8cc8acef0b42.tar.bz2 | |
Issue #18408: Fix _Pickler_New() and _Unpickler_New(): initialize all
attributes before handling errors
_Pickler_New() now calls PyObject_GC_Del() instead of Py_DECREF() on error,
because the pickle object is created using PyObject_GC_New().
Fix a crash in the destructor when an attribute is not initiallized.
Diffstat (limited to 'Python/pystrcmp.c')
0 files changed, 0 insertions, 0 deletions
