From 87a854dc732ac3d2e64d8c2935bf1d77c8de5032 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 17 Dec 2013 14:59:42 +0200 Subject: [PATCH] Fixed leak in sys.flags initialization. --- Python/sysmodule.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Python/sysmodule.c b/Python/sysmodule.c index df9dfb1f0a0..880385c9cbf 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;