]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed leak in sys.flags initialization.
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 17 Dec 2013 12:59:42 +0000 (14:59 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 17 Dec 2013 12:59:42 +0000 (14:59 +0200)
Python/sysmodule.c

index df9dfb1f0a0ed5412c29593f2975094c8a5c552d..880385c9cbfc221aac019ea1493e68aff4a4dbdd 100644 (file)
@@ -1404,6 +1404,7 @@ make_flags(void)
 #undef SetFlag
 
     if (PyErr_Occurred()) {
+        Py_DECREF(seq);
         return NULL;
     }
     return seq;