diff --git a/libs/xmlrpc-c/lib/abyss/src/socket_win.c b/libs/xmlrpc-c/lib/abyss/src/socket_win.c index 757bdeae09..730689584e 100644 --- a/libs/xmlrpc-c/lib/abyss/src/socket_win.c +++ b/libs/xmlrpc-c/lib/abyss/src/socket_win.c @@ -791,6 +791,10 @@ chanSwitchInterrupt(TChanSwitch * const chanSwitchP) { Actually, this is just a no-op because we don't yet know how to accomplish that. -----------------------------------------------------------------------------*/ + struct socketWin * const socketWinP = chanSwitchP->implP; + + if (!socketWinP->userSuppliedWinsock) + closesocket(socketWinP->winsock); }