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
Clean up refleak in module initialization.
  • Loading branch information
brandtbucher committed Nov 18, 2019
commit 341754928416cd0b28387fcd48d4ebf7f5cd6a9a
4 changes: 3 additions & 1 deletion Modules/_tracemalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1656,8 +1656,10 @@ PyInit__tracemalloc(void)
if (m == NULL)
return NULL;

if (tracemalloc_init() < 0)
if (tracemalloc_init() < 0) {
PY_DECREF(m);
return NULL;
}

return m;
}
Expand Down