Memory is not as watertight as crime shows might have you believe. Memory is a complex topic and studies have shown that memories can be altered, invented, and even deleted subconsciously. When people's futures are on the line after being charged with a crime, there has been some debate as to the weight we place on people's memories of traumatic events.
Read more about this subject in an article by Newsweek.