From 31bd42f9b96dfadd7b2e66e28911317e133926a4 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 5 May 2005 16:37:04 +0000 Subject: [PATCH] Add WSACleanup() for Win32 socket cleanup. Backpatch to 7.4.X. Jason Erickson --- src/interfaces/libpq/fe-connect.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 89c6f3fedd..9275e9815c 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -2005,6 +2005,10 @@ freePGconn(PGconn *conn) { pgParameterStatus *pstatus; +#ifdef WIN32 + WSACleanup(); +#endif + if (!conn) return; -- 2.39.5