diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-17 12:59:42 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-17 12:59:42 (GMT) |
commit | 87a854dc732ac3d2e64d8c2935bf1d77c8de5032 (patch) | |
tree | 9b9da2f849a5c236a35aaa7f6ddf1e48ba4366cc | |
parent | 170078804c6191eaeb6985a15a58d43ea673650e (diff) | |
download | cpython-87a854dc732ac3d2e64d8c2935bf1d77c8de5032.zip cpython-87a854dc732ac3d2e64d8c2935bf1d77c8de5032.tar.gz cpython-87a854dc732ac3d2e64d8c2935bf1d77c8de5032.tar.bz2 |
Fixed leak in sys.flags initialization.
-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 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; |