]> granicus.if.org Git - python/commit
Issue #18408: Fix constructors of _elementtree.c
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 12 Jul 2013 00:05:17 +0000 (02:05 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 12 Jul 2013 00:05:17 +0000 (02:05 +0200)
commitd917dcbe5e855ae30eca455d38bec2bf6354dbdf
tree3ded2efe18626a03d000ccc1f731531f9d21691d
parent81aac734e1003d93e6a21d2c8a4943f6398aa419
Issue #18408: Fix constructors of _elementtree.c

* Use Py_DECREF() instead of PyObject_GC_Del() to release correctly all
  resources
* Raise MemoryError on memory allocation failure
Modules/_elementtree.c