summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-03-07 11:58:50 (GMT)
committerThomas Wouters <thomas@python.org>2006-03-07 11:58:50 (GMT)
commit8eb8a829c1e4535be9d98b70875d5193f6b94737 (patch)
tree1b03a682ea23b63abe27dcec504cbdd30df64f40 /Modules
parentd3c38ff7f832f60830532524e07a5e11be749d7e (diff)
downloadcpython-8eb8a829c1e4535be9d98b70875d5193f6b94737.zip
cpython-8eb8a829c1e4535be9d98b70875d5193f6b94737.tar.gz
cpython-8eb8a829c1e4535be9d98b70875d5193f6b94737.tar.bz2
Don't DECREF a borrowed reference.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/regexmodule.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/regexmodule.c b/Modules/regexmodule.c
index fe4cc9a..2fb4198 100644
--- a/Modules/regexmodule.c
+++ b/Modules/regexmodule.c
@@ -536,7 +536,6 @@ regex_symcomp(PyObject *self, PyObject *args)
gdict = PyDict_New();
if (gdict == NULL || (npattern = symcomp(pattern, gdict)) == NULL) {
Py_XDECREF(gdict);
- Py_DECREF(pattern);
return NULL;
}
retval = newregexobject(npattern, tran, pattern, gdict);