Skip to content
New issue

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

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

Already on GitHub? # to your account

Remove memory leak on multiple calls to initCertStore #7021

Merged
merged 3 commits into from
Jan 17, 2020

Conversation

earlephilhower
Copy link
Collaborator

In some cases, initCertStore may need to be called multiple times
(i.e. to update certs w/oa reboot). In that case, the saved file names
leaked when the new ones were malloc()'d.

Fix by freeing the old strings, if present.

In some cases, `initCertStore` may need to be called multiple times
(i.e. to update certs w/oa reboot).  In that case, the saved file names
leaked when the new ones were `malloc()`'d.

Fix by freeing the old strings, if present.
@earlephilhower earlephilhower added this to the 2.7.0 milestone Jan 17, 2020
@earlephilhower earlephilhower merged commit 00440cd into esp8266:master Jan 17, 2020
@earlephilhower earlephilhower deleted the bsslcs branch January 17, 2020 18:12
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant