FreeMem bug / compatibility
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
SysFreeMem, as default FreeMem() FPC realization do not compatible with Delphi one. Delphi allows this sequence: "p:= nil; FreeMem(p);".
Internally Delphi RTL just does this:
begin
if P <> nil then
begin
// Do memory deallocation
end;
end;
Additional information:
Reporter: Alexey Barkovoy
EMail: clootie at ixbt dot com
Mantis conversion info:
- Mantis ID: 5592
- OS: Win32
- Version: 1.9.7
- Fixed in version: 1.9.7