Improved alloc/dealloc error in main. Improved case.