Skip to content

Commit dcb9ad7

Browse files
committed
heap inspection issue fix
1 parent e8ece29 commit dcb9ad7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Client/ApiClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ public object CallApi(
460460
string fileName = Path.Combine(clientCertDirectory, clientCertFile);
461461
// Importing Certificates
462462
var certificate = new X509Certificate2(fileName, clientCertPassword);
463+
clientCertPassword=string.Empty;
463464
RestClient.Options.ClientCertificates = new X509CertificateCollection { certificate };
464465
}
465466

generator/cybersource-csharp-template/ApiClient.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ namespace {{packageName}}.Client
502502
string fileName = Path.Combine(clientCertDirectory, clientCertFile);
503503
// Importing Certificates
504504
var certificate = new X509Certificate2(fileName, clientCertPassword);
505+
clientCertPassword=string.Empty;
505506
RestClient.Options.ClientCertificates = new X509CertificateCollection { certificate };
506507
}
507508

0 commit comments

Comments
 (0)