mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-08 17:53:35 +00:00
clang-tidy said this was a use-after-free
Also, what is this code doing?
This commit is contained in:
1 parent
153e587cea
commit
94d8db4691
1 file changed
+1
@@ -2439,6 +2439,7 @@ void EntityList::UpdateWho(bool iSendFullUpdate)
|
||||
memcpy(pack->pBuffer, tmp, pack->size);
|
||||
pack->size = sizeof(ServerClientListKeepAlive_Struct) + (tmpNumUpdates * 4);
|
||||
safe_delete_array(tmp);
|
||||
sclka = (ServerClientListKeepAlive_Struct*) pack->pBuffer;
|
||||
}
|
||||
sclka->wid[sclka->numupdates] = it->second->GetWID();
|
||||
sclka->numupdates++;
|
||||
|
||||
Reference in new issue
Block a user