View Issue Details

IDProjectCategoryView StatusLast Update
0035536FPCCompilerpublic2019-05-07 22:38
ReporterSerge AnvarovAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version3.0.4Product Build 
Target VersionFixed in Version 
Summary0035536: The compiler does not generate finalizing code for local typed constants of a managed type
DescriptionThe code in the "Steps To Reproduce" cause a memory leak.
Similar code for dynamic arrays or interfaces also cause a memory leak.
Steps To Reproduce{$MODE OBJFPC}
{$WRITEABLECONST ON}
{$LONGSTRINGS ON}

procedure Test;
const
  Leak: string = 'Some string';
begin
  UniqueString(Leak);
end;

begin
  Test;
end.
Additional InformationFPC 3.3.1 do the same.
Delphi work fine in this case.
TagsNo tags attached.
Fixed in Revision
FPCOldBugId
FPCTarget
Attached Files

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-05-07 22:38 Serge Anvarov New Issue