// memory leak problem // mikhail nesterenko // 11/8/99 main(){ int *p; p=new int(1); // creates memory location *p=2; // uses memory location p=new int(3); // p points to a different place // now, the previous memory // location cannot be accessed // and is lost for program int *q=new int(4); // q is initialized to a new // location q=p; // another location lost }