added example of code, that causes a memory leak