Browse Source

Fix memory leak due to double srsym allocation

git-svn-id: trunk@34364 -
pierre 9 years ago
parent
commit
22a7ce8972
1 changed files with 0 additions and 1 deletions
  1. 0 1
      compiler/pgenutil.pas

+ 0 - 1
compiler/pgenutil.pas

@@ -880,7 +880,6 @@ uses
 
 
                 { First a new sym so we can reuse this specialization and
                 { First a new sym so we can reuse this specialization and
                   references to this specialization can be handled }
                   references to this specialization can be handled }
-                srsym:=ctypesym.create(finalspecializename,generrordef,true);
                 if genericdef.typ=procdef then
                 if genericdef.typ=procdef then
                   srsym:=cprocsym.create(finalspecializename)
                   srsym:=cprocsym.create(finalspecializename)
                 else
                 else