diff --git a/src/port/win32env.c b/src/port/win32env.c index 621ec8d67f..188215876b 100644 --- a/src/port/win32env.c +++ b/src/port/win32env.c @@ -92,7 +92,6 @@ pgwin32_putenv(const char *envval) rtmodules[i].putenvFunc = (PUTENVPROC) GetProcAddress(rtmodules[i].hmodule, "_putenv"); if (rtmodules[i].putenvFunc == NULL) { - CloseHandle(rtmodules[i].hmodule); rtmodules[i].hmodule = INVALID_HANDLE_VALUE; continue; }