]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] Fix a possible crash due to PyType_FromSpecWithBases() (GH-10304) (GH-13495)
authorPetr Viktorin <encukou@gmail.com>
Wed, 29 May 2019 03:35:33 +0000 (05:35 +0200)
committerNed Deily <nad@python.org>
Wed, 29 May 2019 03:35:33 +0000 (23:35 -0400)
commit3708316afa061dc6c1c6a1207f4998974cfa0752
treec111f958d63d46c825464c5614e303a6c064849e
parent8ea0fd85bc67438f679491fae29dfe0a3961900a
[3.7] Fix a possible crash due to PyType_FromSpecWithBases() (GH-10304) (GH-13495)

If the PyObject_MALLOC() call failed in PyType_FromSpecWithBases(),
PyObject_Free() would be called on a static string in type_dealloc().
(cherry picked from commit 0613c1e481440aa8f54ba7f6056924c175fbcc13)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Objects/typeobject.c