Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory leaks of emblem_data #3278

Merged
merged 2 commits into from
Feb 5, 2024

Conversation

skyleo
Copy link
Contributor

@skyleo skyleo commented Jan 27, 2024

Pull Request Prelude

Changes Proposed

Fix memory leaks of emblem_data caused by not freeing them when unloading guilds in char-server or disbanding them.
Also caused in map-server when receiving guild info from a guild that is already inside the map-server guild_db overwriting the emblem_data without freeing it first.

Issues addressed: None surprisingly.

@skyleo skyleo requested a review from 4144 January 27, 2024 19:05
@skyleo skyleo force-pushed the emblem-memory-leaks branch from 780cfff to ad7b9e8 Compare January 28, 2024 02:44
@skyleo
Copy link
Contributor Author

skyleo commented Jan 28, 2024

Removed the unnecessary null check before freeing. (when you free a null pointer nothing happens)

@MishimaHaruna MishimaHaruna added this to the Release v2024.02 milestone Feb 4, 2024
@MishimaHaruna MishimaHaruna merged commit 1c386f5 into HerculesWS:master Feb 5, 2024
214 of 256 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants