mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Fixed leak in sys.flags initialization.
This commit is contained in:
commit
11ee080ea7
1 changed files with 1 additions and 0 deletions
|
@ -1465,6 +1465,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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue