[Python-checkins] cpython (2.7): Fixed leak in sys.flags initialization.

serhiy.storchaka python-checkins at python.org
Tue Dec 17 14:02:39 CET 2013


http://hg.python.org/cpython/rev/c3c3dd78309d
changeset: 88021:c3c3dd78309d
branch: 2.7
user: Serhiy Storchaka <storchaka at gmail.com>
date: Tue Dec 17 14:59:29 2013 +0200
summary:
 Fixed leak in sys.flags initialization.
files:
 Python/sysmodule.c | 1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -1261,6 +1261,7 @@
 #undef SetFlag
 
 if (PyErr_Occurred()) {
+ Py_DECREF(seq);
 return NULL;
 }
 return seq;
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /