If a player's name is empty, CPlayerListDialog::Activate will leak the KeyValues object allocated in the loop.
Given that unconnected clients may return a null pointer, this can leak maxClients - currentPlayersKeyValues instances (24 bytes each) every time the dialog is activated.
If a player's name is empty,
CPlayerListDialog::Activate
will leak theKeyValues
object allocated in the loop. Given that unconnected clients may return a null pointer, this can leakmaxClients - currentPlayers
KeyValues
instances (24 bytes each) every time the dialog is activated.