mirror of https://github.com/python/cpython
initmain(): Nailed a memory leak. bimod must be DECREF'd!
This commit is contained in:
parent
666e60095b
commit
3d05b1a0ae
|
@ -411,6 +411,7 @@ initmain()
|
||||||
if (bimod == NULL ||
|
if (bimod == NULL ||
|
||||||
PyDict_SetItemString(d, "__builtins__", bimod) != 0)
|
PyDict_SetItemString(d, "__builtins__", bimod) != 0)
|
||||||
Py_FatalError("can't add __builtins__ to __main__");
|
Py_FatalError("can't add __builtins__ to __main__");
|
||||||
|
Py_DECREF(bimod);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue