Browse Source

* applied a memory leak fix by Charlie Ikeson

git-svn-id: trunk@87 -
florian 20 years ago
parent
commit
d4883186ed
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/base/md5/md5.pp

+ 1 - 0
packages/base/md5/md5.pp

@@ -351,6 +351,7 @@ begin
       If (Count>0) then
       If (Count>0) then
         MD5Update(Context, Buf^, Count);
         MD5Update(Context, Buf^, Count);
     Until (Count<BufSize);
     Until (Count<BufSize);
+    FreeMem(Buf,BufSize);
     Close(F);
     Close(F);
     end;
     end;
   MD5Final(Context, Result);
   MD5Final(Context, Result);