From d066d57718bb96ebf2b487077a09535ccd3f3d15 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 17 Dec 2013 14:59:42 +0200 Subject: Fixed leak in sys.flags initialization. --- Python/sysmodule.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Python/sysmodule.c') 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; -- cgit v1.2.1