Examples of memory leaks caused by circular references to blocks and solutions