Skip to content

Commit c8108c4

Browse files
Fixed leak in sys.flags initialization.
1 parent 0086b4b commit c8108c4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Python/sysmodule.c

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

12631263
if (PyErr_Occurred()) {
1264+
Py_DECREF(seq);
12641265
return NULL;
12651266
}
12661267
return seq;

0 commit comments

Comments
 (0)