]> granicus.if.org Git - python/commitdiff
Patch (by Andrew Kuchling of course) to prevent named back references
authorGuido van Rossum <guido@python.org>
Mon, 15 Dec 1997 17:33:24 +0000 (17:33 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 15 Dec 1997 17:33:24 +0000 (17:33 +0000)
in the pattern to wear out the reference count on small integers.

Modules/pypcre.c

index 797d955b397c3223220b1500078550e1b74350bb..699932fc5e4c369bc68ead7fe3c5729883c0cff2 100644 (file)
@@ -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