[fpc-devel]fpc v1.1 cpupara memleak

Sergey Korshunoff seyko at comail.ru
Sat Jul 13 04:31:14 CEST 2002


Hi!

diff -urN FPC-MY-1.old/fpc/compiler/i386/cpupara.pas 
FPC-MY-1/fpc/compiler/i386/cpupara.pas
--- FPC-MY-1.old/fpc/compiler/i386/cpupara.pas	Fri Jul 12 11:16:39 2002
+++ FPC-MY-1/fpc/compiler/i386/cpupara.pas	Fri Jul 12 11:17:43 2002
@@ -61,8 +61,10 @@
       end;
 
 
-begin
+initialization
    paramanager:=ti386paramanager.create;
+finalization
+   paramanager.free;
 end.
 {
   $Log: cpupara.pas,v $
diff -urN FPC-MY-1.old/fpc/compiler/powerpc/cpupara.pas 
FPC-MY-1/fpc/compiler/powerpc/cpupara.pas
--- FPC-MY-1.old/fpc/compiler/powerpc/cpupara.pas	Fri Jul 12 11:16:40 2002
+++ FPC-MY-1/fpc/compiler/powerpc/cpupara.pas	Fri Jul 12 11:18:28 2002
@@ -134,8 +134,10 @@
          getfuncretloc.register:=R_3;
       end;
 
-begin
+initialization
    paramanager:=tppcparamanager.create;
+finalization
+   paramanager.free;
 end.
 {
   $Log: cpupara.pas,v $




More information about the fpc-devel mailing list