commit | 1eadb4103640d874312b9da7b31fa2166996d043 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Dec 15 17:33:24 1997 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Dec 15 17:33:24 1997 +0000 |
tree | 4c4f26011124f5ade0055faf807026d4e6630dd0 | |
parent | f0413d4841b2b0636b6892b0f013a8a7e739054e [diff] [blame] |
Patch (by Andrew Kuchling of course) to prevent named back references in the pattern to wear out the reference count on small integers.
diff --git a/Modules/pypcre.c b/Modules/pypcre.c index 797d955..699932f 100644 --- a/Modules/pypcre.c +++ b/Modules/pypcre.c
@@ -1832,7 +1832,7 @@ } refnum = PyInt_AsLong(intobj); - Py_DECREF(string); Py_DECREF(intobj); + Py_DECREF(string); *code++ = OP_REF; *code++ = refnum; /* The continue will cause the top-level for() loop to