[fpc-devel] compile time memory leak detection
JoshyFun
joshyfun at gmail.com
Tue Jan 19 15:49:01 CET 2010
Hello Nikolai,
Tuesday, January 19, 2010, 1:38:53 PM, you wrote:
NZ> This would probably include:
NZ> - guaranree that dynamically allocated will not be silently lost (leak)
NZ> - guaranree that dynamically allocated mem will not be disposed twice;
NZ> - guarantee that dynamically allocated mem will not be accessed beyond
NZ> the respective allocation size.
That's impossible to the compiler, it is a runtime task (heaptrc):
procedure weird();
var
p: pchar;
begin
GetMem(p,10);
inc(p,random(30));
p^:='A';
end;
--
Best regards,
JoshyFun
More information about the fpc-devel
mailing list