From: Jorge Pereira Date: Thu, 17 Jun 2021 14:57:32 +0000 (-0300) Subject: tls: Fix missing X509_STORE_free() (#4119) X-Git-Tag: release_3_0_24~202 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f2a96cc871e06f287c3741f3bb72d09db0040d9;p=thirdparty%2Ffreeradius-server.git tls: Fix missing X509_STORE_free() (#4119) --- diff --git a/src/main/tls.c b/src/main/tls.c index e0128c9fcb8..017d308b438 100644 --- a/src/main/tls.c +++ b/src/main/tls.c @@ -3263,6 +3263,7 @@ X509_STORE *fr_init_x509_store(fr_tls_server_conf_t *conf) if (conf->ca_file || conf->ca_path) if (!X509_STORE_load_locations(store, conf->ca_file, conf->ca_path)) { tls_error_log(NULL, "Error reading Trusted root CA list \"%s\"", conf->ca_file); + X509_STORE_free(store); return NULL; }