TIL: lldb po strongly captures an object, forever

While investigating some memory leak issue, I found out that if I po an object before using Memory Graph, that object would stay in memory forever, and Memory Graph would show something like NSKeyValueDependencyInfo as an owner of the object.

A leak will also happen when using p or expression. See for more details: https://github.com/kastiglione/swift_po.

Leave a comment