From bb3c05d7efca8d23bf39bc2640297ba2598899f3 Mon Sep 17 00:00:00 2001 From: Zackery Spytz Date: Thu, 14 Feb 2019 00:43:17 -0700 Subject: closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849) --- .../next/Core and Builtins/2019-02-14-00-00-30.bpo-35991.xlbfSk.rst | 1 + Modules/_randommodule.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Core and Builtins/2019-02-14-00-00-30.bpo-35991.xlbfSk.rst 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; } -- cgit v0.12