Skip to content
Merged
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 memory leak during setup.py build_ext
  • Loading branch information
btharper committed Oct 5, 2019
commit 3f1669e8edb49d4af74f7b7686215973b4766229
8 changes: 6 additions & 2 deletions Modules/_asynciomodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -3248,7 +3248,9 @@ module_init(void)
goto fail;
}

current_tasks = PyDict_New();
if (current_tasks == NULL) {
current_tasks = PyDict_New();
}
if (current_tasks == NULL) {
goto fail;
}
Expand All @@ -3259,7 +3261,9 @@ module_init(void)
}


context_kwname = Py_BuildValue("(s)", "context");
if (context_kwname == NULL) {
context_kwname = Py_BuildValue("(s)", "context");
}
if (context_kwname == NULL) {
goto fail;
}
Expand Down