* [UUID] BugFix: Correct a memory mismanagement error in UUID programming due to the way xuuid_t is utilized.

This commit is contained in:
Robert MacGregor 2021-08-14 17:44:17 -04:00
parent 3c61538811
commit eca3fbfa67
3 changed files with 30 additions and 24 deletions

View file

@ -975,13 +975,16 @@ ConsoleSetType( TypePID )
else
{
Torque::UUID uuid;
if( !uuid.fromString( argv[ 0 ] ) )
{
if( !uuid.fromString( argv[ 0 ] ) )
{
Con::errorf( "Error parsing UUID in PID: '%s'", argv[ 0 ] );
*pid = NULL;
}
else
*pid = SimPersistID::findOrCreate( uuid );
}
else
{
*pid = SimPersistID::findOrCreate(uuid);
}
}
}
else