summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-02-14 00:02:12 -0800
committerGitHub <noreply@github.com>2019-02-14 00:02:12 -0800
commite20893596f4ecbca90be6caecbf8c22c9629376d (patch)
tree19863dba6b0a5574df90dac880707d77cd100a09 /Modules
parenta78251e2d6de37f46c230be924032a87df730761 (diff)
downloadcpython-git-e20893596f4ecbca90be6caecbf8c22c9629376d.tar.gz
closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849)
(cherry picked from commit bb3c05d7efca8d23bf39bc2640297ba2598899f3) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_randommodule.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c
index 51677f8b00..1a76ba99ab 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;
}