Fix resource leak in client_connect()

This commit is contained in:
RElesgoe 2016-08-28 01:50:03 -07:00
parent 846c4dc5a6
commit 4ca4e6b971

View file

@ -554,6 +554,10 @@ namespace pvpgn
}
packet_destroy(rpacket);
if (lsock >= 0)
psock_close(lsock);
return sd;
}