Is there a memory leakage in this simple code snippet

Printable View