mirror of
https://github.com/python/cpython.git
synced 2026-04-22 03:41:08 +00:00
closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849)
(cherry picked from commit bb3c05d7ef)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
This commit is contained in:
parent
a78251e2d6
commit
e20893596f
2 changed files with 1 additions and 1 deletions
|
|
@ -0,0 +1 @@
|
|||
Fix a potential double free in Modules/_randommodule.c.
|
||||
|
|
@ -292,7 +292,6 @@ random_seed(RandomObject *self, PyObject *args)
|
|||
PY_LITTLE_ENDIAN,
|
||||
0); /* unsigned */
|
||||
if (res == -1) {
|
||||
PyMem_Free(key);
|
||||
goto Done;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue