Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 15846:d41f9b0a40ca legacy-trunk
Neil discovered a bad DECREF on warnoptions, that caused repeated
re-initializing Python (Py_Finalize() followed by Py_Initialize()) to
blow up quickly. With the DECREF removed I can't get it to fail any
more. (Except it still leaks, but that's probably a separate issue.)
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sat, 13 Jan 2001 22:06:05 +0000 |
| parents | a563eec46c1a |
| children | b44e77a12978 |
comparison
equal
deleted
inserted
replaced
| 15845:210bbe53b6d4 | 15846:d41f9b0a40ca |
|---|---|
| 632 } | 632 } |
| 633 else { | 633 else { |
| 634 Py_INCREF(warnoptions); | 634 Py_INCREF(warnoptions); |
| 635 } | 635 } |
| 636 if (warnoptions != NULL) { | 636 if (warnoptions != NULL) { |
| 637 PyDict_SetItemString(sysdict, "warnoptions", v = warnoptions); | 637 PyDict_SetItemString(sysdict, "warnoptions", warnoptions); |
| 638 Py_DECREF(v); | |
| 639 } | 638 } |
| 640 | 639 |
| 641 if (PyErr_Occurred()) | 640 if (PyErr_Occurred()) |
| 642 return NULL; | 641 return NULL; |
| 643 return m; | 642 return m; |
