From 3c7b5c2ddc2a8a9b0fbc8f06e972e779d61437e7 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 27 Aug 2010 13:30:31 -0700 Subject: [PATCH] stream-ssl: Use OPENSSL_free() to free memory from X509_NAME_oneline(). Reported-by: Tsvi Slonim --- lib/stream-ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stream-ssl.c b/lib/stream-ssl.c index 69beab94..a6335879 100644 --- a/lib/stream-ssl.c +++ b/lib/stream-ssl.c @@ -1262,7 +1262,7 @@ log_ca_cert(const char *file_name, X509 *cert) subject = X509_NAME_oneline(X509_get_subject_name(cert), NULL, 0); VLOG_INFO("Trusting CA cert from %s (%s) (fingerprint %s)", file_name, subject ? subject : "", ds_cstr(&fp)); - free(subject); + OPENSSL_free(subject); ds_destroy(&fp); } -- 2.30.2