mirror of
https://github.com/python/cpython.git
synced 2024-11-25 10:54:51 +08:00
Patch (by Andrew Kuchling of course) to prevent named back references
in the pattern to wear out the reference count on small integers.
This commit is contained in:
parent
f0413d4841
commit
1eadb41036
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user