mirror of
https://github.com/python/cpython.git
synced 2026-03-06 13:00:50 +00:00
closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849)
This commit is contained in:
parent
d73ac0eba9
commit
bb3c05d7ef
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