This fixes a regression from a change a few weeks ago in git commit af645fcbec which caused certificates to not be free()'d correctly if the certificates are chained. dlmalloc() should have printed an error in most build modes. ASAN caught it too.
af645fcbec