commit | 33e5dd8466eaea91b3d2483180c3cb43e447ba23 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Tue May 04 00:48:11 2010 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Tue May 04 00:48:11 2010 +0000 |
tree | b941c8a8800082db5dcd9c87db822cd51350cd21 | |
parent | 87ab6ad4d6b8f5cfc1e0d56ea9520e99a99a8883 [diff] [blame] |
Fix a Py_DECREF to a Py_XDECREF. Found using Clang's static analyzer.
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index d428c66..3b4ccfd 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c
@@ -993,7 +993,7 @@ else { bytes_read = readinst(buf, BUF_SIZE, readmethod); if (bytes_read < 0) { - Py_DECREF(readmethod); + Py_XDECREF(readmethod); return NULL; } }