From: Jorge Pereira Date: Thu, 17 Jun 2021 18:29:07 +0000 (-0300) Subject: tls: Fix missing X509_STORE_free() (#4120) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b967ed3d4d4e040067b01895d0f75e2b8be73230;p=thirdparty%2Ffreeradius-server.git tls: Fix missing X509_STORE_free() (#4120) --- diff --git a/src/lib/tls/conf.c b/src/lib/tls/conf.c index 704b2f80910..e942659e267 100644 --- a/src/lib/tls/conf.c +++ b/src/lib/tls/conf.c @@ -318,6 +318,7 @@ static X509_STORE *conf_ocsp_revocation_store(fr_tls_conf_t *conf) if (conf->ca_file || conf->ca_path) if (!X509_STORE_load_locations(store, conf->ca_file, conf->ca_path)) { fr_tls_log_error(NULL, "Error reading Trusted root CA list \"%s\"", conf->ca_file); + X509_STORE_free(store); return NULL; }