• Pablo Galindo's avatar
    bpo-20104: Fix leaks and errors in new os.posix_spawn (GH-5418) · 0cd6bca6
    Pablo Galindo yazdı
    * Fix memory leaks and error handling in posix spawn
    * Improve error handling when destroying the file_actions object
    * Py_DECREF the result of PySequence_Fast on error
    * Handle uninitialized pid
    * Use OSError if file actions fails to initialize
    * Move _file_actions to outer scope to avoid undefined behaviour
    * Remove HAVE_POSIX_SPAWN define in Modules/posixmodule.c
    * Unshadow exception and clean error message
    0cd6bca6
posixmodule.c 354 KB