Browse Source

engine: server: fix attempting to free pool instead of an allocated memory

pull/2/head
Alibek Omarov 1 year ago committed by GitHub
parent
commit
1c9f333420
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      engine/server/sv_game.c

2
engine/server/sv_game.c

@ -3227,7 +3227,7 @@ string_t GAME_EXPORT SV_AllocString( const char *szValue ) @@ -3227,7 +3227,7 @@ string_t GAME_EXPORT SV_AllocString( const char *szValue )
SV_ProcessString( newString, szValue );
i = svgame.physFuncs.pfnAllocString( newString );
Mem_Free( host.mempool );
Mem_Free( newString );
return i;
}

Loading…
Cancel
Save