summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-12-17 12:59:42 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-12-17 12:59:42 (GMT)
commit87a854dc732ac3d2e64d8c2935bf1d77c8de5032 (patch)
tree9b9da2f849a5c236a35aaa7f6ddf1e48ba4366cc /Python
parent170078804c6191eaeb6985a15a58d43ea673650e (diff)
downloadcpython-87a854dc732ac3d2e64d8c2935bf1d77c8de5032.zip
cpython-87a854dc732ac3d2e64d8c2935bf1d77c8de5032.tar.gz
cpython-87a854dc732ac3d2e64d8c2935bf1d77c8de5032.tar.bz2
Fixed leak in sys.flags initialization.
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index df9dfb1..880385c 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -1404,6 +1404,7 @@ make_flags(void)
#undef SetFlag
if (PyErr_Occurred()) {
+ Py_DECREF(seq);
return NULL;
}
return seq;