From: Guido van Rossum Date: Mon, 15 Dec 1997 17:33:24 +0000 (+0000) Subject: Patch (by Andrew Kuchling of course) to prevent named back references X-Git-Tag: v1.5~164 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1eadb4103640d874312b9da7b31fa2166996d043;p=thirdparty%2FPython%2Fcpython.git 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 797d955b397c..699932fc5e4c 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