diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-17 12:59:29 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-17 12:59:29 (GMT) |
commit | 0585418b0d50755500587a887f3a901f8149cd00 (patch) | |
tree | a61f9bbf0354e7e996daae26e202bded7adab35d /Python/sysmodule.c | |
parent | 84e7e5f40e2972af725e7f57e53bb6bcf3931912 (diff) | |
download | cpython-0585418b0d50755500587a887f3a901f8149cd00.zip cpython-0585418b0d50755500587a887f3a901f8149cd00.tar.gz cpython-0585418b0d50755500587a887f3a901f8149cd00.tar.bz2 |
Fixed leak in sys.flags initialization.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index a868715..fa66eb4 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1261,6 +1261,7 @@ make_flags(void) #undef SetFlag if (PyErr_Occurred()) { + Py_DECREF(seq); return NULL; } return seq; |