diff --git a/source/duke3d/src/network.cpp b/source/duke3d/src/network.cpp index 4fc348318..6a1342237 100644 --- a/source/duke3d/src/network.cpp +++ b/source/duke3d/src/network.cpp @@ -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; }