mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-23 20:09:45 +03:00
Fix strdup() leaks
This commit is contained in:
@@ -1240,7 +1240,7 @@ char *CAI_Expresser::ParseApplyContext( const char *szContext )
|
||||
{
|
||||
// If it's really 0, then this is a waste of time
|
||||
Warning("\"%s\" was detected by applyContext operators as an operable number, but it's not.\n", szValue);
|
||||
return strdup(szContext);
|
||||
return szContext;
|
||||
}
|
||||
|
||||
// This is the existing value; will be operated upon and become the final assignment
|
||||
|
||||
Reference in New Issue
Block a user