summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-01-16 04:27:47 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-01-16 04:27:47 (GMT)
commit19030a08fbfb8596a2a3db55737828b08b378cd4 (patch)
tree6edf9b05a8960c099f19e61375a75076f2274eb2
parentbd2983caf39a6614924929af5b6e66e099749445 (diff)
downloadcpython-19030a08fbfb8596a2a3db55737828b08b378cd4.zip
cpython-19030a08fbfb8596a2a3db55737828b08b378cd4.tar.gz
cpython-19030a08fbfb8596a2a3db55737828b08b378cd4.tar.bz2
Plug memory leak.
-rw-r--r--Modules/posixmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index b57bc02..99e5864 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -5578,6 +5578,7 @@ INITFUNC(void)
PyDict_SetItemString(d, "error", PyExc_OSError);
#ifdef HAVE_PUTENV
- posix_putenv_garbage = PyDict_New();
+ if (posix_putenv_garbage == NULL)
+ posix_putenv_garbage = PyDict_New();
#endif
}