Add sample for memory leak debugging