Skip to content

Commit 6d6c779

Browse files
committed
heap inspection issue fix
1 parent 8221f9f commit 6d6c779

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard/Client/ApiClient.cs

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

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard/generator/cybersource-csharp-template/ApiClient.mustache

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

0 commit comments

Comments
 (0)