On Ubuntu 18.04, at commit c43eb9b1d8 (~noon Aug 9 HEAD), I'm getting memory leaks when doing code completion. To reproduce,
- swift/utils/build-script --release --enable-lsan --debug-swift-stdlib
- llvm/utils/lit/lit.py build/Ninja-ReleaseAssert+stdlib-DebugAssert/swift-linux-x86_64/test-linux-x86_64/IDE/complete_repl_identifier_prefix_1.swift -a
LSAN should print out leaks. Here's what I get: https://gist.github.com/marcrasi/7d1f5e5766833c605b92873687eb49ca
This does not occur at commit 482d0621a6 and does occur at commit 1a211e6, so I suspect that https://github.com/apple/swift/pull/26403 caused it.