Skip to content

Commit

Permalink
Merge pull request #3 from davisouzatb/patch-1
Browse files Browse the repository at this point in the history
Estava gerando um Vazamento de memoria
  • Loading branch information
viniciussanchez authored Sep 17, 2021
2 parents 30e856e + 5ff11df commit b0f2455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BCrypt.Core.pas
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ function TBCryptImpl.MakeSalt: TBytes;
I: Longint;
begin
SetLength(LRandomTemp, 17);
SetLength(LByteArray, 16);
SetLength(LByteArray, 17);
Randomize;
LRandomTemp := MTRandomBytes(BCRYPT_SALT_LEN);
I := 0;
Expand Down

0 comments on commit b0f2455

Please sign in to comment.