Fix ASAN crashes and LSAN leaks (#7649)

This commit is contained in:
Vincent Stumpf
2023-03-20 09:32:41 -07:00
committed by GitHub
parent 4d9b1a0b83
commit 819b7cb361
8 changed files with 15 additions and 6 deletions

View File

@@ -10812,7 +10812,6 @@ void clif_parse_WantToConnection(int fd, map_session_data* sd)
}
CREATE(sd, TBL_PC, 1);
// placement new
new(sd) map_session_data();
sd->fd = fd;
#ifdef PACKET_OBFUSCATION