commit | ec2319c46d11e8f486e7def785339af5415a3559 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Tue Sep 20 23:00:59 2016 +0200 |
committer | Victor Stinner <victor.stinner@gmail.com> | Tue Sep 20 23:00:59 2016 +0200 |
tree | e07dfd50ae27a470fade7c623d2deac6c9fb91c3 | |
parent | 75024c6589539f72af69ce61cd6493b193989c2d [diff] |
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.