From 3d05b1a0ae8ad4acf733f03b45cf9c51bf3ff47c Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 29 Jan 1999 21:30:22 +0000 Subject: initmain(): Nailed a memory leak. bimod must be DECREF'd! --- Python/pythonrun.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 6948829418..2d065cf22d 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); } } -- cgit v1.2.1