From beb94431f62092b65e5c82daba5f302a6b028a9e Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Thu, 22 Oct 2020 10:07:47 +0200 Subject: [PATCH] bpo-1635741: Fix NULL ptr deref in multiprocessing Commit 1d541c25c8019f7a0b80b3e1b437abe171e40b65 introduced a NULL pointer dereference in error path. Signed-off-by: Christian Heimes --- Modules/_multiprocessing/multiprocessing.c | 1 - 1 file changed, 1 deletion(-) diff --git a/Modules/_multiprocessing/multiprocessing.c b/Modules/_multiprocessing/multiprocessing.c index 25b8dc3967a4fb..bec23517fca517 100644 --- a/Modules/_multiprocessing/multiprocessing.c +++ b/Modules/_multiprocessing/multiprocessing.c @@ -207,7 +207,6 @@ multiprocessing_exec(PyObject *module) py_sem_value_max = PyLong_FromLong(SEM_VALUE_MAX); if (py_sem_value_max == NULL) { - Py_DECREF(py_sem_value_max); return -1; } if (PyDict_SetItemString(_PyMp_SemLockType.tp_dict, "SEM_VALUE_MAX", pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy