From 1eadb4103640d874312b9da7b31fa2166996d043 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 15 Dec 1997 17:33:24 +0000 Subject: [PATCH] Patch (by Andrew Kuchling of course) to prevent named back references in the pattern to wear out the reference count on small integers. --- Modules/pypcre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/pypcre.c b/Modules/pypcre.c index 797d955b39..699932fc5e 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 -- 2.50.0