Skip to content

Commit dde91b1

Browse files
authored
bpo-1635741: Fix NULL ptr deref in multiprocessing (GH-22880)
Commit 1d541c2 introduced a NULL pointer dereference in error path. Signed-off-by: Christian Heimes <christian@python.org>
1 parent 8a9463f commit dde91b1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Modules/_multiprocessing/multiprocessing.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ multiprocessing_exec(PyObject *module)
207207
py_sem_value_max = PyLong_FromLong(SEM_VALUE_MAX);
208208

209209
if (py_sem_value_max == NULL) {
210-
Py_DECREF(py_sem_value_max);
211210
return -1;
212211
}
213212
if (PyDict_SetItemString(_PyMp_SemLockType.tp_dict, "SEM_VALUE_MAX",

0 commit comments

Comments
 (0)
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