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

This commit is contained in:
Alibek Omarov 2023-08-30 18:52:44 +03:00 committed by GitHub
parent 75e5da071c
commit 1c9f333420
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}