Remove wrong CloseHandle() call.
authorNoah Misch <noah@leadboat.com>
Sat, 3 Dec 2016 20:46:35 +0000 (15:46 -0500)
committerNoah Misch <noah@leadboat.com>
Sat, 3 Dec 2016 20:46:35 +0000 (15:46 -0500)
commitb37da1e8a0e46ae12415fafd3ea441fc3546cf2f
treee3d153eb4ea0103e8786e99a9bf3db4c547f3f59
parenta9d9208c15de4933f89e5b6ac1d9ef0efd299162
Remove wrong CloseHandle() call.

In accordance with its own documentation, invoke CloseHandle() only when
directed in the documentation for the function that furnished the
handle.  GetModuleHandle() does not so direct.  We have been issuing
this call only in the rare event that a CRT DLL contains no "_putenv"
symbol, so lack of bug reports is uninformative.  Back-patch to 9.2 (all
supported versions).

Christian Ullrich, reviewed by Michael Paquier.
src/port/win32env.c