From: Michael R Sweet Date: Mon, 4 Apr 2022 02:46:19 +0000 (-0400) Subject: Fix context leak found by Coverity in new OpenSSL code. X-Git-Tag: v2.4.2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6a8a2ee995eddce991ab03913118853eef97f44;p=thirdparty%2Fcups.git Fix context leak found by Coverity in new OpenSSL code. --- 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); }