Add WSACleanup() for Win32 socket cleanup.
authorBruce Momjian <[email protected]>
Thu, 5 May 2005 16:36:20 +0000 (16:36 +0000)
committerBruce Momjian <[email protected]>
Thu, 5 May 2005 16:36:20 +0000 (16:36 +0000)
Jason Erickson

src/interfaces/libpq/fe-connect.c

index 6e546e75a19a53a3dc6a5888ef06896b4d402490..a199e4b942c785ee1cb232e488809229073802ef 100644 (file)
@@ -2034,6 +2034,10 @@ freePGconn(PGconn *conn)
        PGnotify   *notify;
        pgParameterStatus *pstatus;
 
+#ifdef WIN32
+       WSACleanup();
+#endif
+
        if (!conn)
                return;