From d6a8a2ee995eddce991ab03913118853eef97f44 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 3 Apr 2022 22:46:19 -0400 Subject: [PATCH] Fix context leak found by Coverity in new OpenSSL code. --- cups/tls-openssl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cups/tls-openssl.c b/cups/tls-openssl.c index 66f163280f..6029b9e3d8 100644 --- a/cups/tls-openssl.c +++ b/cups/tls-openssl.c @@ -1048,6 +1048,7 @@ _httpTLSStart(http_t *http) // I - Connection to server http->error = errno = EINVAL; http->status = HTTP_STATUS_ERROR; _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to create server credentials."), 1); + SSL_CTX_free(context); return (-1); } -- 2.47.2