Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aa3c4a commit 214a0b1Copy full SHA for 214a0b1
1 file changed
Modules/_sre.c
@@ -2616,6 +2616,7 @@ init_sre(void)
2616
{
2617
PyObject* m;
2618
PyObject* d;
2619
+ PyObject* x;
2620
2621
/* Patch object types */
2622
Pattern_Type.ob_type = Match_Type.ob_type =
@@ -2625,12 +2626,14 @@ init_sre(void)
2625
2626
d = PyModule_GetDict(m);
2627
2628
PyDict_SetItemString(
- d, "MAGIC", (PyObject*) PyInt_FromLong(SRE_MAGIC)
2629
+ d, "MAGIC", (x = (PyObject*) PyInt_FromLong(SRE_MAGIC))
2630
);
2631
+ Py_XDECREF(x);
2632
2633
- d, "copyright", (PyObject*) PyString_FromString(copyright)
2634
+ d, "copyright", (x = (PyObject*)PyString_FromString(copyright))
2635
2636
2637
2638
}
2639
0 commit comments