From 58396d907b993f849a7f32b9665b793c9a5c5d0e Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Fri, 18 May 2018 17:12:19 -0600 Subject: * Release memory of a conversion table to UTF-8, if this was created by us. * Some distributions of OpenSSL do not define ERR_free_strings and EVP_cleanup, so we only execute them when defined. Reported by Erich Eckner. --- pith/smime.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pith/smime.c') diff --git a/pith/smime.c b/pith/smime.c index 9a901a82..ebafe268 100644 --- a/pith/smime.c +++ b/pith/smime.c @@ -1224,8 +1224,12 @@ smime_deinit(void) dprint((9, "smime_deinit()")); app_RAND_write_file(NULL); if (s_cert_store != NULL) X509_STORE_free(s_cert_store); +#ifdef ERR_free_strings ERR_free_strings(); +#endif /* ERR_free_strings */ +#ifdef EVP_cleanup EVP_cleanup(); +#endif /* EVP_cleanup */ free_smime_struct(&ps_global->smime); } -- cgit v1.2.3-70-g09d2