mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 13:31:14 +02:00
24 lines
315 B
ObjectPascal
24 lines
315 B
ObjectPascal
uses
|
|
erroru;
|
|
|
|
procedure Test;
|
|
var
|
|
P: Pointer;
|
|
begin
|
|
P:=nil;
|
|
ReAllocMem(P, 8);
|
|
ReAllocMem(P, 0);
|
|
end;
|
|
|
|
var Mem : sizeuint;
|
|
begin
|
|
domem(mem);
|
|
Test;
|
|
if domem(mem)<>0 then
|
|
begin
|
|
Writeln('ReAllocMem creates emory leaks');
|
|
Writeln('Bug 812 is not yet fixed');
|
|
Halt(1);
|
|
end;
|
|
end.
|