]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] bpo-34408: Prevent a null pointer dereference and resource leakage in `PyInterp...
authorPablo Galindo <Pablogsal@gmail.com>
Fri, 10 May 2019 20:16:19 +0000 (21:16 +0100)
committerGitHub <noreply@github.com>
Fri, 10 May 2019 20:16:19 +0000 (21:16 +0100)
commit34ed40f2e56703de04241cbacb306113b59a84f9
treef6fb5006492c0d003af42af15293e02469dd26d7
parent069a5b48334a795d3abe3a512dd41aad7a532a73
[3.7] bpo-34408: Prevent a null pointer dereference and resource leakage in `PyInterpreterState_New()` (GH-8767) (GH-13237)

* A pointer in `PyInterpreterState_New()` could have been `NULL` when being dereferenced.

* Memory was leaked in `PyInterpreterState_New()` when taking some error-handling code path.
(cherry picked from commit 95d630e)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Misc/NEWS.d/next/Core and Builtins/2018-08-14-22-35-19.bpo-34408.aomWYW.rst [new file with mode: 0644]
Python/pystate.c