mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 02:50:33 +00:00
engine: server: fix memleak after previous commit
This commit is contained in:
parent
8966172ce0
commit
49a20a9ac5
@ -4787,7 +4787,15 @@ qboolean SV_ParseEdict( char **pfile, edict_t *ent )
|
||||
}
|
||||
|
||||
if( classname == NULL )
|
||||
{
|
||||
// release allocated strings
|
||||
for( i = 0; i < numpairs; i++ )
|
||||
{
|
||||
Mem_Free( pkvd[i].szKeyName );
|
||||
Mem_Free( pkvd[i].szValue );
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
ent = SV_AllocPrivateData( ent, ALLOC_STRING( classname ));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user