]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
tls: Fix missing X509_STORE_free() (#4120)
authorJorge Pereira <jpereira@users.noreply.github.com>
Thu, 17 Jun 2021 18:29:07 +0000 (15:29 -0300)
committerGitHub <noreply@github.com>
Thu, 17 Jun 2021 18:29:07 +0000 (13:29 -0500)
src/lib/tls/conf.c

index 704b2f809103599470e547e9414f508fdaaf58da..e942659e26730a20cc82fe43e6b6d00db42355d8 100644 (file)
@@ -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;
                }