Browse Source

Fix memory leak

pull/2/head
mittorn 7 years ago
parent
commit
37aa201ed7
  1. 1
      engine/server/sv_client.c

1
engine/server/sv_client.c

@ -342,6 +342,7 @@ void SV_ConnectClient( netadr_t from ) @@ -342,6 +342,7 @@ void SV_ConnectClient( netadr_t from )
sv.current_client = newcl;
newcl->edict = EDICT_NUM( (newcl - svs.clients) + 1 );
newcl->challenge = challenge; // save challenge for checksumming
if( newcl->frames ) Mem_Free( newcl->frames );
newcl->frames = (client_frame_t *)Z_Malloc( sizeof( client_frame_t ) * SV_UPDATE_BACKUP );
newcl->userid = g_userid++; // create unique userid
newcl->state = cs_connected;

Loading…
Cancel
Save