Commit 0585418b authored by Serhiy Storchaka's avatar Serhiy Storchaka

Fixed leak in sys.flags initialization.

parent 84e7e5f4
...@@ -1261,6 +1261,7 @@ make_flags(void) ...@@ -1261,6 +1261,7 @@ make_flags(void)
#undef SetFlag #undef SetFlag
if (PyErr_Occurred()) { if (PyErr_Occurred()) {
Py_DECREF(seq);
return NULL; return NULL;
} }
return seq; return seq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment