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 leak when using reason field #174

Merged
merged 1 commit into from
Apr 9, 2024
Merged

Conversation

ThePedroo
Copy link
Contributor

Notice

  • I understand the code that I have edited, and have the means
    to test it before making changes to Concord.

What?

This PR fixes a memory leak that happened when setting a reason field for requests.

Why?

This assures that memory won't increase over time.

How?

By freeing on discord_request_cancel function.

Testing?

Testing was done via a small bot that only has the function of deleting a message with a reason.

This commit fixes a memory leak that happened when a reason was set for some request.
@lcsmuller lcsmuller merged commit 88461c1 into dev Apr 9, 2024
2 checks passed
@lcsmuller lcsmuller deleted the fix/reason-memory-leak branch April 9, 2024 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants