diff options
Diffstat (limited to 'Programs/python.c')
-rw-r--r-- | Programs/python.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Programs/python.c b/Programs/python.c index a7afbc774b..37b10b837e 100644 --- a/Programs/python.c +++ b/Programs/python.c @@ -24,9 +24,6 @@ main(int argc, char **argv) int i, res; char *oldloc; - /* Force malloc() allocator to bootstrap Python */ - (void)_PyMem_SetupAllocators("malloc"); - argv_copy = (wchar_t **)PyMem_RawMalloc(sizeof(wchar_t*) * (argc+1)); argv_copy2 = (wchar_t **)PyMem_RawMalloc(sizeof(wchar_t*) * (argc+1)); if (!argv_copy || !argv_copy2) { @@ -65,13 +62,7 @@ main(int argc, char **argv) setlocale(LC_ALL, oldloc); PyMem_RawFree(oldloc); - res = Py_Main(argc, argv_copy); - - /* Force again malloc() allocator to release memory blocks allocated - before Py_Main() */ - (void)_PyMem_SetupAllocators("malloc"); - for (i = 0; i < argc; i++) { PyMem_RawFree(argv_copy2[i]); } |