diff options
author | Guido van Rossum <guido@python.org> | 1997-12-15 17:33:24 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-12-15 17:33:24 (GMT) |
commit | 1eadb4103640d874312b9da7b31fa2166996d043 (patch) | |
tree | 4c4f26011124f5ade0055faf807026d4e6630dd0 /Modules | |
parent | f0413d4841b2b0636b6892b0f013a8a7e739054e (diff) | |
download | cpython-1eadb4103640d874312b9da7b31fa2166996d043.zip cpython-1eadb4103640d874312b9da7b31fa2166996d043.tar.gz cpython-1eadb4103640d874312b9da7b31fa2166996d043.tar.bz2 |
Patch (by Andrew Kuchling of course) to prevent named back references
in the pattern to wear out the reference count on small integers.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/pypcre.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ for (;; ptr++) } 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 |