Browse Source

fix memory leak from refactoring (level 1)

Ugochukwu Mmaduekwe 6 years ago
parent
commit
71b73f1739
1 changed files with 4 additions and 0 deletions
  1. 4 0
      CryptoLib/src/Math/EC/ClpECAlgorithms.pas

+ 4 - 0
CryptoLib/src/Math/EC/ClpECAlgorithms.pas

@@ -786,6 +786,10 @@ begin
   then
   then
   begin
   begin
     result := ImplShamirsTrickFixedPoint(p, k, q, l);
     result := ImplShamirsTrickFixedPoint(p, k, q, l);
+    infoP.PreComp := Nil; // Review
+    infoP.PreCompNeg := Nil; // Review
+    infoQ.PreComp := Nil; // Review
+    infoQ.PreCompNeg := Nil; // Review
     Exit;
     Exit;
   end;
   end;