Fix resource leak in client_connect()
This commit is contained in:
parent
846c4dc5a6
commit
4ca4e6b971
1 changed files with 4 additions and 0 deletions
|
@ -554,6 +554,10 @@ namespace pvpgn
|
|||
}
|
||||
|
||||
packet_destroy(rpacket);
|
||||
|
||||
if (lsock >= 0)
|
||||
psock_close(lsock);
|
||||
|
||||
return sd;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue