diff options
author | Zackery Spytz <zspytz@gmail.com> | 2019-02-14 07:43:17 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2019-02-14 07:43:17 (GMT) |
commit | bb3c05d7efca8d23bf39bc2640297ba2598899f3 (patch) | |
tree | f13ade21133256a462f9e88208877d705c3ef639 | |
parent | d73ac0eba992a33992210915739d73250bf6d38d (diff) | |
download | cpython-bb3c05d7efca8d23bf39bc2640297ba2598899f3.zip cpython-bb3c05d7efca8d23bf39bc2640297ba2598899f3.tar.gz cpython-bb3c05d7efca8d23bf39bc2640297ba2598899f3.tar.bz2 |
closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849)
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2019-02-14-00-00-30.bpo-35991.xlbfSk.rst | 1 | ||||
-rw-r--r-- | Modules/_randommodule.c | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-02-14-00-00-30.bpo-35991.xlbfSk.rst b/Misc/NEWS.d/next/Core and Builtins/2019-02-14-00-00-30.bpo-35991.xlbfSk.rst new file mode 100644 index 0000000..4bd5520 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2019-02-14-00-00-30.bpo-35991.xlbfSk.rst @@ -0,0 +1 @@ +Fix a potential double free in Modules/_randommodule.c. 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; } |