projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0075690
)
Check return results for errors
author
Neal Norwitz
<nnorwitz@gmail.com>
Tue, 7 Feb 2006 06:58:52 +0000
(06:58 +0000)
committer
Neal Norwitz
<nnorwitz@gmail.com>
Tue, 7 Feb 2006 06:58:52 +0000
(06:58 +0000)
Modules/_elementtree.c
patch
|
blob
|
history
diff --git
a/Modules/_elementtree.c
b/Modules/_elementtree.c
index ea5aa6cf08a2f8783f876769558325817ee9c4ef..a43fe2ec33b9433e0dc565a1382559312a69c80b 100644
(file)
--- a/
Modules/_elementtree.c
+++ b/
Modules/_elementtree.c
@@
-905,6
+905,9
@@
element_getiterator(ElementObject* self, PyObject* args)
}
args = PyTuple_New(2);
+ if (args == NULL)
+ return NULL;
+
Py_INCREF(self); PyTuple_SET_ITEM(args, 0, (PyObject*) self);
Py_INCREF(tag); PyTuple_SET_ITEM(args, 1, (PyObject*) tag);
@@
-2596,6
+2599,8
@@
init_elementtree(void)
/* python glue code */
g = PyDict_New();
+ if (g == NULL)
+ return;
PyDict_SetItemString(g, "__builtins__", PyEval_GetBuiltins());