Skip to content
Snippets Groups Projects
Commit 799a04e9 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

tls: fix memory leak

Refs #44716
parent 62820ac4
No related branches found
No related tags found
No related merge requests found
...@@ -102,8 +102,8 @@ SecurityEvaluator::certificateIsValid(const std::string& pemPath) ...@@ -102,8 +102,8 @@ SecurityEvaluator::certificateIsValid(const std::string& pemPath)
// Here perform checks and send callbacks // Here perform checks and send callbacks
return true;
X509_free(x509); X509_free(x509);
return true;
} else { } else {
ERROR("Could not open certificate file"); ERROR("Could not open certificate file");
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment