summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/port/win32env.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/port/win32env.c b/src/port/win32env.c
index 2d459877eb2..f5d2f5b4a12 100644
--- a/src/port/win32env.c
+++ b/src/port/win32env.c
@@ -89,7 +89,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;
}