From: Ben Pfaff Date: Fri, 27 Aug 2010 20:30:31 +0000 (-0700) Subject: stream-ssl: Use OPENSSL_free() to free memory from X509_NAME_oneline(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c7b5c2ddc2a8a9b0fbc8f06e972e779d61437e7;p=openvswitch stream-ssl: Use OPENSSL_free() to free memory from X509_NAME_oneline(). Reported-by: Tsvi Slonim --- 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); }