diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-17 14:59:42 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-17 14:59:42 +0200 |
commit | d066d57718bb96ebf2b487077a09535ccd3f3d15 (patch) | |
tree | 6dc831dcf11b1cec695759509eb7bf1bffecfd45 /Python/sysmodule.c | |
parent | 2fce67ae29cdd86719e9d246cff4dced9b4609b5 (diff) | |
download | cpython-d066d57718bb96ebf2b487077a09535ccd3f3d15.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 df9dfb1f0a..880385c9cb 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; |