Fix a segfault when OOM happened.

Reported by Matt Breedlove
1 file changed