Avoid compilation crash in debug mode with insufficient memory.

Change-Id: Ideda26ea0e9f801ad63c2959e4c07566246889ff
Reviewed-on: https://code-review.googlesource.com/4354
Reviewed-by: Paul Wankadia <junyer@google.com>
2 files changed