diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-17 15:00:53 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-17 15:00:53 +0200 |
commit | 3b6c9aa09199408e09ca13802cdef3b2a301f093 (patch) | |
tree | f4984fb4194647b88e6712ad71f2dac794be036f /Python/sysmodule.c | |
parent | 80d3e22e0f4b7997184c6cecedb2b88d3b1acf65 (diff) | |
parent | d066d57718bb96ebf2b487077a09535ccd3f3d15 (diff) | |
download | cpython-3b6c9aa09199408e09ca13802cdef3b2a301f093.tar.gz |
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 961657ec61..46a6aa9ec2 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; |