diff options
author | Guido van Rossum <guido@python.org> | 2001-01-13 22:06:05 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-01-13 22:06:05 +0000 |
commit | eb7afb7c1becd20d128c10e98a83dd3837c44cff (patch) | |
tree | 2fa5ef6db2b930792db92210845abfbc209c01b2 /Python/sysmodule.c | |
parent | 07e92ae107adb2b0b7ba8dd845c8f871be23f386 (diff) | |
download | cpython-eb7afb7c1becd20d128c10e98a83dd3837c44cff.tar.gz |
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.)
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 85fdc7e7f4..3df85ff022 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -634,8 +634,7 @@ _PySys_Init(void) Py_INCREF(warnoptions); } if (warnoptions != NULL) { - PyDict_SetItemString(sysdict, "warnoptions", v = warnoptions); - Py_DECREF(v); + PyDict_SetItemString(sysdict, "warnoptions", warnoptions); } if (PyErr_Occurred()) |