closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849)

This commit is contained in:
Zackery Spytz 2019-02-14 00:43:17 -07:00 committed by Benjamin Peterson
parent d73ac0eba9
commit bb3c05d7ef
2 changed files with 1 additions and 1 deletions

View File

@ -0,0 +1 @@
Fix a potential double free in Modules/_randommodule.c.

View File

@ -292,7 +292,6 @@ random_seed(RandomObject *self, PyObject *args)
PY_LITTLE_ENDIAN,
0); /* unsigned */
if (res == -1) {
PyMem_Free(key);
goto Done;
}