Commit bb3c05d7 authored by Zackery Spytz's avatar Zackery Spytz Committed by Benjamin Peterson

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

parent d73ac0eb
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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment