summaryrefslogtreecommitdiffstats
path: root/Modules/_randommodule.c
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2019-02-14 07:43:17 (GMT)
committerBenjamin Peterson <benjamin@python.org>2019-02-14 07:43:17 (GMT)
commitbb3c05d7efca8d23bf39bc2640297ba2598899f3 (patch)
treef13ade21133256a462f9e88208877d705c3ef639 /Modules/_randommodule.c
parentd73ac0eba992a33992210915739d73250bf6d38d (diff)
downloadcpython-bb3c05d7efca8d23bf39bc2640297ba2598899f3.zip
cpython-bb3c05d7efca8d23bf39bc2640297ba2598899f3.tar.gz
cpython-bb3c05d7efca8d23bf39bc2640297ba2598899f3.tar.bz2
closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849)
Diffstat (limited to 'Modules/_randommodule.c')
-rw-r--r--Modules/_randommodule.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c
index dae9d42..6a48689 100644
--- a/Modules/_randommodule.c
+++ b/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;
}