From: Ben Pfaff Date: Mon, 1 Feb 2010 22:35:37 +0000 (-0800) Subject: stream-ssl: Fix unimportant memory leak. X-Git-Tag: v1.0.0~259^2~204 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f6b60e026eed9dcc68850c6f9e3b393e6a18fd49;p=sliver-openvswitch.git 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 e501b995d..941f77914 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. */