Browse Source

Avoid leaking localnamespacelist field of TPPUModule class

Pierre Muller 1 month ago
parent
commit
659d94ed3f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/fmodule.pas

+ 2 - 0
compiler/fmodule.pas

@@ -697,6 +697,8 @@ implementation
          _exports.free;
         if assigned(dllscannerinputlist) then
          dllscannerinputlist.free;
+        if assigned(localnamespacelist) then
+         localnamespacelist.free;
         if assigned(scanner) then
          begin
             { also update current_scanner if it was pointing