[DiscordArchive] https://github.com/TrinityCore/TrinityCore/commit/d808e78702624a11431fed5ff365584bc908d9a5
[DiscordArchive] https://github.com/TrinityCore/TrinityCore/commit/d808e78702624a11431fed5ff365584bc908d9a5
tring constructor will copy the data already.Archived author: Kelno • Posted: 2024-03-19T13:00:32.196000+00:00
Original source
https://github.com/TrinityCore/TrinityCo...4bc908d9a5
Looks correct to you?
[Embed: Fixed memory leak in CliCommandHolder constructor · TrinityCore/Tri...]
strdup is not needed here, std:
tring constructor will copy the data already.
https://github.com/TrinityCore/TrinityCo...4bc908d9a5
Archived author: Tea • Posted: 2024-03-19T13:11:23.146000+00:00
Original source
what? no
tring
Archived author: Tea • Posted: 2024-03-19T13:12:33.836000+00:00
Original source
m_command is a char*, not std:
tring
Archived author: Tea • Posted: 2024-03-19T13:12:55.983000+00:00
Original source
and has correct free() in destructor
Archived author: Tea • Posted: 2024-03-19T13:13:15.239000+00:00
Original source
there is no leak at all here