Add code for memory leak demo.