However, memory is corrupted by this program.