As simple as I could get it, still showing memory leak