 +                CFUserNotificationRef dialog = CFUserNotificationCreate( NULL, 0, kCFUserNotificationUseRadioButtonsFlag | kCFUserNotificationNoteAlertLevel | CFUserNotificationCheckBoxChecked( 0 ), &err, parameters );
 +                CFOptionFlags responseFlags = 0;
 +                CFUserNotificationReceiveResponse( dialog, 0, &responseFlags );
++                CFRelease( choose );
++                CFRelease( certsValues );
++                CFRelease( parameters );
++                CFRelease( dialog );
 +                if( !( responseFlags & kCFUserNotificationCancelResponse ) )
 +                {
 +                    for( int i = 0; i < count; i++ )

 ClientCertIdentityList GetClientCertsOnBackgroundThread(
     const SSLCertRequestInfo& request) {
   std::string server_domain = request.host_and_port.host();
@@ -385,6 +391,75 @@ ClientCertIdentityList GetClientCertsOnBackgroundThread(
   GetClientCertsImpl(std::move(preferred_identity),
                      std::move(regular_identities), request, true,
                      &selected_identities);

From 4c0e3b01d2b1fb1018a742a5583c61f8f1b1de99 Mon Sep 17 00:00:00 2001
From: Dmitrii Pichulin <deem@deem.ru>
Date: Fri, 25 Oct 2019 17:44:37 +0300
Subject: [PATCH] chromium GOSTSSL
