diff options
author | Barry Warsaw <barry@python.org> | 1999-01-29 21:30:22 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1999-01-29 21:30:22 (GMT) |
commit | 3d05b1a0ae8ad4acf733f03b45cf9c51bf3ff47c (patch) | |
tree | e51f2b4072d9e62ce9b7c6515384d46b2b2ac37c /Python/pythonrun.c | |
parent | 666e60095be534eacc2bdb615a7c8f9339abe43f (diff) | |
download | cpython-3d05b1a0ae8ad4acf733f03b45cf9c51bf3ff47c.zip cpython-3d05b1a0ae8ad4acf733f03b45cf9c51bf3ff47c.tar.gz cpython-3d05b1a0ae8ad4acf733f03b45cf9c51bf3ff47c.tar.bz2 |
initmain(): Nailed a memory leak. bimod must be DECREF'd!
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 6948829..2d065cf 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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); } } |