summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-12-17 13:00:53 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-12-17 13:00:53 (GMT)
commit11ee080ea77c037c5a0bd8de972b040930a9b7e6 (patch)
tree3e4160c014e00430016fc0cb4d67f5cb6183fccc
parent9a76735b1dd427f4b7d6712ca3bb2b8958e689e8 (diff)
parent87a854dc732ac3d2e64d8c2935bf1d77c8de5032 (diff)
downloadcpython-11ee080ea77c037c5a0bd8de972b040930a9b7e6.zip
cpython-11ee080ea77c037c5a0bd8de972b040930a9b7e6.tar.gz
cpython-11ee080ea77c037c5a0bd8de972b040930a9b7e6.tar.bz2
Fixed leak in sys.flags initialization.
-rw-r--r--Python/sysmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 961657e..46a6aa9 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -1465,6 +1465,7 @@ make_flags(void)
#undef SetFlag
if (PyErr_Occurred()) {
+ Py_DECREF(seq);
return NULL;
}
return seq;