diff options
author | Thomas Wouters <thomas@python.org> | 2006-03-07 11:58:50 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2006-03-07 11:58:50 (GMT) |
commit | 8eb8a829c1e4535be9d98b70875d5193f6b94737 (patch) | |
tree | 1b03a682ea23b63abe27dcec504cbdd30df64f40 /Modules | |
parent | d3c38ff7f832f60830532524e07a5e11be749d7e (diff) | |
download | cpython-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.c | 1 |
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); |