diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-12 01:43:40 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-12 01:43:40 (GMT) |
commit | 6f5ff3f3eb7abc2f4750c1319b560f67faf546ac (patch) | |
tree | 1b84bed27afcf3a62f50a2a2a6dabe162327866a /Modules/_elementtree.c | |
parent | 2a899c8b767144e809418fd04f83e4e5789084cd (diff) | |
download | cpython-6f5ff3f3eb7abc2f4750c1319b560f67faf546ac.zip cpython-6f5ff3f3eb7abc2f4750c1319b560f67faf546ac.tar.gz cpython-6f5ff3f3eb7abc2f4750c1319b560f67faf546ac.tar.bz2 |
Klocwork made another run and found a bunch more problems.
This is the first batch of fixes that should be easy to verify based on context.
This fixes problem numbers: 220 (ast), 323-324 (symtable),
321-322 (structseq), 215 (array), 210 (hotshot), 182 (codecs), 209 (etree).
Diffstat (limited to 'Modules/_elementtree.c')
-rw-r--r-- | Modules/_elementtree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c index b468e71..c9e524f 100644 --- a/Modules/_elementtree.c +++ b/Modules/_elementtree.c @@ -809,7 +809,7 @@ element_findtext(ElementObject* self, PyObject* args) PyObject* text = element_get_text(item); if (text == Py_None) return PyString_FromString(""); - Py_INCREF(text); + Py_XINCREF(text); return text; } } |