From 3731a400b42394c39f62ce67bcbdeb05499e09f4 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 5 May 2005 16:36:12 +0000 Subject: [PATCH] Add WSACleanup() for Win32 socket cleanup. Jason Erickson --- src/interfaces/libpq/fe-connect.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index af80b857b9..f11759927a 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.304 2005/03/25 00:34:29 tgl Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.305 2005/05/05 16:36:12 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -2034,6 +2034,10 @@ freePGconn(PGconn *conn) PGnotify *notify; pgParameterStatus *pstatus; +#ifdef WIN32 + WSACleanup(); +#endif + if (!conn) return; -- 2.40.0