]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix context leak found by Coverity in new OpenSSL code.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 4 Apr 2022 02:46:19 +0000 (22:46 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 4 Apr 2022 02:46:19 +0000 (22:46 -0400)
cups/tls-openssl.c

index 66f163280fa65f067b6e7077be18297e631aee1f..6029b9e3d838d805ec6a3cae7573bfff76ab424e 100644 (file)
@@ -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);
       }