initmain(): Nailed a memory leak. bimod must be DECREF'd!

This commit is contained in:
Barry Warsaw 1999-01-29 21:30:22 +00:00
parent 666e60095b
commit 3d05b1a0ae
1 changed files with 1 additions and 0 deletions

View File

@ -411,6 +411,7 @@ initmain()
if (bimod == NULL ||
PyDict_SetItemString(d, "__builtins__", bimod) != 0)
Py_FatalError("can't add __builtins__ to __main__");
Py_DECREF(bimod);
}
}