mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-29 13:00:43 +00:00
Fix minor memory leak in Net_Connect()
# Conflicts: # source/duke3d/src/network.cpp
This commit is contained in:
parent
4128fd62c7
commit
54ce1b5c06
1 changed files with 2 additions and 0 deletions
|
@ -4689,6 +4689,7 @@ void Net_Connect(const char *srvaddr)
|
|||
if (g_netClient == NULL)
|
||||
{
|
||||
Printf("An error occurred while trying to create an ENet client host.\n");
|
||||
Xfree(oursrvaddr);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -4702,6 +4703,7 @@ void Net_Connect(const char *srvaddr)
|
|||
if (g_netClientPeer == NULL)
|
||||
{
|
||||
Printf("No available peers for initiating an ENet connection.\n");
|
||||
Xfree(oursrvaddr);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue