diff options
author | Guido van Rossum <guido@python.org> | 2001-01-13 22:06:05 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-01-13 22:06:05 (GMT) |
commit | 03df3b3bc1073c43ae36777b8f5c3646b9cce61d (patch) | |
tree | 7cd65470657912dcb054628559e6949a4ec640c0 /Python/sysmodule.c | |
parent | 5ceadc8cba7ebd3d4e1ba44d78bd3b48869728ec (diff) | |
download | cpython-03df3b3bc1073c43ae36777b8f5c3646b9cce61d.zip cpython-03df3b3bc1073c43ae36777b8f5c3646b9cce61d.tar.gz cpython-03df3b3bc1073c43ae36777b8f5c3646b9cce61d.tar.bz2 |
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 85fdc7e..3df85ff 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()) |