summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-07-11 23:08:39 +0200
committerVictor Stinner <victor.stinner@gmail.com>2013-07-11 23:08:39 +0200
commit5140fe2c5aad7f6997b936bc20dbef107a03c1d4 (patch)
treee6460b560eb2361d70d774fe9ef05697565afc24 /Python/errors.c
parentb0b4a0a14f5f21613e9826f9cbb72668ee9a9f85 (diff)
downloadcpython-5140fe2c5aad7f6997b936bc20dbef107a03c1d4.tar.gz
Issue #18408: Different fixes in _elementtree.c to handle correctly MemoryError
* create_new_element() initializes all attributes before handling errors, to fix a crash in the destructor * create_new_element() calls PyObject_GC_Del() on error, instead of PyObject_Del(), because the object was created by PyObject_GC_New() * subelement() now handles create_new_element() failure * element_getattro() now handles element_get_text() failure * makeuniversal() now handles PyBytes_FromStringAndSize() failure
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions