Skip to content

fix(mem): Code cleanup and potential memory leak #19

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

Merged
merged 1 commit into from
Feb 5, 2025
Merged

Conversation

mathieucarbou
Copy link
Member

No description provided.

@mathieucarbou mathieucarbou self-assigned this Feb 5, 2025
@mathieucarbou mathieucarbou marked this pull request as ready for review February 5, 2025 08:47
@mathieucarbou mathieucarbou requested a review from a team February 5, 2025 08:47
Comment on lines +1623 to +1628
const int8_t err = _tcp_accept(this, c);
if (err != ERR_OK) {
delete c;
}
return err;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the accept event cannot be added to the queue then delete the allocated client class.

@mathieucarbou mathieucarbou merged commit ae1130f into main Feb 5, 2025
13 checks passed
@mathieucarbou mathieucarbou deleted the fix/mem branch February 5, 2025 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants