Skip to content

Commit 3731a40

Browse files
committed
Add WSACleanup() for Win32 socket cleanup.
Jason Erickson
1 parent d445b41 commit 3731a40

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.304 2005/03/25 00:34:29 tgl Exp $
11+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.305 2005/05/05 16:36:12 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -2034,6 +2034,10 @@ freePGconn(PGconn *conn)
20342034
PGnotify *notify;
20352035
pgParameterStatus *pstatus;
20362036

2037+
#ifdef WIN32
2038+
WSACleanup();
2039+
#endif
2040+
20372041
if (!conn)
20382042
return;
20392043

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy