diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-07-11 22:56:25 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-07-11 22:56:25 +0200 |
commit | f021a3e723a08a8259e980a2c44c4f4df265149a (patch) | |
tree | aacfce3c61df89e2f4c0b8ae23af0b6ac72de51f /Python/errors.c | |
parent | 7826e75fb04035cdc04b9efe952ee3d92d4e69ca (diff) | |
download | cpython-f021a3e723a08a8259e980a2c44c4f4df265149a.tar.gz |
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/errors.c')
0 files changed, 0 insertions, 0 deletions