There was an error while loading. Please reload this page.
1 parent 2ea4c37 commit daf7a08Copy full SHA for daf7a08
1 file changed
Modules/_tracemalloc.c
@@ -1637,8 +1637,10 @@ PyInit__tracemalloc(void)
1637
if (m == NULL)
1638
return NULL;
1639
1640
- if (tracemalloc_init() < 0)
+ if (tracemalloc_init() < 0) {
1641
+ Py_DECREF(m);
1642
1643
+ }
1644
1645
return m;
1646
}
0 commit comments