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 for MD5 leak bug, issue #7195 #7197

Merged
merged 4 commits into from
Apr 9, 2020
Merged

Conversation

lrodorigo
Copy link
Contributor

@lrodorigo lrodorigo commented Apr 7, 2020

Added the free before the return.
I was wondering if a more "C++ish" resource handling could be fine for you (e.g. buffer as unique_ptr).

Fixes #7195

@devyte
Copy link
Collaborator

devyte commented Apr 7, 2020

@lrodorigo I wouldn't mind a unique_ptr solution at all, at the very least it would be one small step towards exception friendly code.

@devyte devyte linked an issue Apr 8, 2020 that may be closed by this pull request
@devyte devyte linked an issue Apr 8, 2020 that may be closed by this pull request
@devyte
Copy link
Collaborator

devyte commented Apr 9, 2020

@lrodorigo ping? will you be reworking this with a smart ptr?

@lrodorigo
Copy link
Contributor Author

lrodorigo commented Apr 9, 2020

Sorry, I read quickly your message and I misunderstood your message.

I can try to rework for a smart_ptr, no-except code. I can start to work on it after easter holidays.

@d-a-v
Copy link
Collaborator

d-a-v commented Apr 9, 2020

I can try to rework for a smart_ptr, no-except code. I can start to work on it after easter holidays.

That will be nice !
We are going to merge this fix now because it solves a bug,
then when you're ready you can post another pull request using unique_ptr<>

@earlephilhower earlephilhower merged commit 41d271d into esp8266:master Apr 9, 2020
@lrodorigo lrodorigo deleted the md5-fix branch April 9, 2020 19:39
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.

Possible memory leak in MD5Builder
5 participants