Skip to content

Commit d1486a5

Browse files
committed
Avoid memory leak in mapSymbols
1 parent d71fea5 commit d1486a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Symbols.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,9 @@ trait Symbols { this: Context =>
348348
info = completer,
349349
privateWithin = ttmap1.mapOwner(odenot.privateWithin), // since this refers to outer symbols, need not include copies (from->to) in ownermap here.
350350
annotations = odenot.annotations)
351-
352351
}
353352

353+
copies.foreach(_.ensureCompleted()) // avoid memory leak
354354
copies
355355
}
356356

0 commit comments

Comments
 (0)