Remove memory leak on multiple calls to initCertStore by earlephilhower · Pull Request #7021 · esp8266/Arduino

@earlephilhower

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 added this to the 2.7.0 milestone

Jan 17, 2020

@earlephilhower

@earlephilhower