diff options
author | Thomas Wouters <thomas@python.org> | 2006-03-07 11:58:50 +0000 |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2006-03-07 11:58:50 +0000 |
commit | 61c2602414cadf72b4e1b58b5dc42ff9fe477369 (patch) | |
tree | 27fc7abbfe80848c5ab51f35ec9294847cce3266 | |
parent | 905ea010bbe1c7374177f179b34f6683a326be44 (diff) | |
download | cpython-61c2602414cadf72b4e1b58b5dc42ff9fe477369.tar.gz |
Don't DECREF a borrowed reference.
-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 fe4cc9a073..2fb4198207 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); |