]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 14 Feb 2019 08:02:12 +0000 (00:02 -0800)
committerGitHub <noreply@github.com>
Thu, 14 Feb 2019 08:02:12 +0000 (00:02 -0800)
(cherry picked from commit bb3c05d7efca8d23bf39bc2640297ba2598899f3)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Misc/NEWS.d/next/Core and Builtins/2019-02-14-00-00-30.bpo-35991.xlbfSk.rst [new file with mode: 0644]
Modules/_randommodule.c

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 (file)
index 0000000..4bd5520
--- /dev/null
@@ -0,0 +1 @@
+Fix a potential double free in Modules/_randommodule.c.
index 51677f8b00a492e88eb2c0b458bd684506de04e5..1a76ba99ab25270d3ca4bcf2d4745486ccdc2728 100644 (file)
@@ -292,7 +292,6 @@ random_seed(RandomObject *self, PyObject *args)
                               PY_LITTLE_ENDIAN,
                               0); /* unsigned */
     if (res == -1) {
-        PyMem_Free(key);
         goto Done;
     }