closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849)
This commit is contained in:
parent
d73ac0eba9
commit
bb3c05d7ef
|
@ -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…
Reference in New Issue