]> granicus.if.org Git - python/commitdiff
closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849)
authorZackery Spytz <zspytz@gmail.com>
Thu, 14 Feb 2019 07:43:17 +0000 (00:43 -0700)
committerBenjamin Peterson <benjamin@python.org>
Thu, 14 Feb 2019 07:43:17 +0000 (23:43 -0800)
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 dae9d42fcb225ca9b61893fbb9baad5e1e95ebe3..6a48689204c5a580aa4596dc0e4393e20e228e3b 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;
     }