]> git.ipfire.org Git - thirdparty/postgresql.git/commit
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:47:31 +0000 (15:47 -0500)
commit4c3505eb46779a2d4ea55b731736b994a0f3eb49
treecb5c3f2627a8973718b2e013f76f67965f29d3a5
parent2d60d921ed4b54074ebf1991ddd2d80f8bf2175a
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