Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix ref leaks in signal module
  • Loading branch information
wjssz committed Sep 5, 2019
commit 3b768dbbb2a7965157f89404aa6c5fdcce3ffbc4
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix ref leaks in signal module.
Comment thread
This conversation was marked as resolved.
Outdated
2 changes: 2 additions & 0 deletions Modules/signalmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1351,10 +1351,12 @@ PyInit__signal(void)
d = PyModule_GetDict(m);

x = DefaultHandler = PyLong_FromVoidPtr((void *)SIG_DFL);
Py_XINCREF(x);
if (PyModule_AddObject(m, "SIG_DFL", x))
goto finally;

x = IgnoreHandler = PyLong_FromVoidPtr((void *)SIG_IGN);
Py_XINCREF(x);
if (PyModule_AddObject(m, "SIG_IGN", x))
goto finally;

Expand Down