From: Ben Pfaff Date: Mon, 1 Feb 2010 22:35:37 +0000 (-0800) Subject: stream-ssl: Fix unimportant memory leak. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6b60e026eed9dcc68850c6f9e3b393e6a18fd49;p=openvswitch stream-ssl: Fix unimportant memory leak. This function is generally called only once per program execution, so leaking a little bit of memory does not matter that much. Found with valgrind. --- diff --git a/lib/stream-ssl.c b/lib/stream-ssl.c index e501b995..941f7791 100644 --- a/lib/stream-ssl.c +++ b/lib/stream-ssl.c @@ -1074,6 +1074,7 @@ stream_ssl_set_ca_cert_file(const char *file_name, bool bootstrap) } X509_free(certs[i]); } + free(certs); /* Set up CAs for OpenSSL to trust in verifying the peer's * certificate. */