From f6b60e026eed9dcc68850c6f9e3b393e6a18fd49 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 1 Feb 2010 14:35:37 -0800 Subject: [PATCH] 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. --- lib/stream-ssl.c | 1 + 1 file changed, 1 insertion(+) 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. */ -- 2.43.0