Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1eadb41

Browse files
committed
Patch (by Andrew Kuchling of course) to prevent named back references
in the pattern to wear out the reference count on small integers.
1 parent f0413d4 commit 1eadb41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/pypcre.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,7 @@ for (;; ptr++)
18321832
}
18331833

18341834
refnum = PyInt_AsLong(intobj);
1835-
Py_DECREF(string); Py_DECREF(intobj);
1835+
Py_DECREF(string);
18361836
*code++ = OP_REF;
18371837
*code++ = refnum;
18381838
/* The continue will cause the top-level for() loop to

0 commit comments

Comments
 (0)