summaryrefslogtreecommitdiff
path: root/Python/Python-ast.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
commit71c8b7ec0464628633954333038af2f8174c10be (patch)
treedb9cbcb979f3e7fd040e03277bf5a5250c055cda /Python/Python-ast.c
parent4d463433404fc9c3385d6afebab41352f2fbc6f8 (diff)
downloadcpython-git-71c8b7ec0464628633954333038af2f8174c10be.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/Python-ast.c')
0 files changed, 0 insertions, 0 deletions