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

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


http://hg.python.org/cpython/rev/90a7277a3187
changeset:   88022:90a7277a3187
branch:      3.3
parent:      88009:4864c0b914ae
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Tue Dec 17 14:59:42 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
@@ -1404,6 +1404,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