SIGN IN SIGN UP

Fix memleak in os.getrandom()

Issue #27778: Fix a memory leak in os.getrandom() when the getrandom() is
interrupted by a signal and a signal handler raises a Python exception.

Modify also os_getrandom_impl() to avoid the temporary buffer, use directly a
Python bytes object.
V
Victor Stinner committed
ec2319c46d11e8f486e7def785339af5415a3559
Parent: 75024c6