File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -5181,7 +5181,7 @@ enum posix_spawn_file_actions_identifier {
5181
5181
static int
5182
5182
parse_file_actions (PyObject * file_actions ,
5183
5183
posix_spawn_file_actions_t * file_actionsp ,
5184
- PyObject * temp_buffer )
5184
+ PyObject * temp_buffer )
5185
5185
#else
5186
5186
static int
5187
5187
parse_file_actions (PyObject * file_actions ,
@@ -5232,7 +5232,10 @@ parse_file_actions(PyObject *file_actions,
5232
5232
goto fail ;
5233
5233
}
5234
5234
#if defined(__GLIBC__ ) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ < 20 ))
5235
- PyList_Append (temp_buffer , path );
5235
+ int error = PyList_Append (temp_buffer , path );
5236
+ if (error ) {
5237
+ goto fail ;
5238
+ }
5236
5239
#endif
5237
5240
errno = posix_spawn_file_actions_addopen (file_actionsp ,
5238
5241
fd , PyBytes_AS_STRING (path ), oflag , (mode_t )mode );
You can’t perform that action at this time.
0 commit comments