Skip to content

Commit 87a854d

Browse files
Fixed leak in sys.flags initialization.
1 parent 1700788 commit 87a854d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/sysmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,6 +1404,7 @@ make_flags(void)
14041404
#undef SetFlag
14051405

14061406
if (PyErr_Occurred()) {
1407+
Py_DECREF(seq);
14071408
return NULL;
14081409
}
14091410
return seq;

0 commit comments

Comments
 (0)