summaryrefslogtreecommitdiffstats
path: root/V8Binding/v8/src/zone.cc
diff options
context:
space:
mode:
Diffstat (limited to 'V8Binding/v8/src/zone.cc')
-rw-r--r--V8Binding/v8/src/zone.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/V8Binding/v8/src/zone.cc b/V8Binding/v8/src/zone.cc
index d78c19b..33fe557 100644
--- a/V8Binding/v8/src/zone.cc
+++ b/V8Binding/v8/src/zone.cc
@@ -176,7 +176,10 @@ Address Zone::NewExpand(int size) {
new_size = Max(kSegmentOverhead + size, kMaximumSegmentSize);
}
Segment* segment = Segment::New(new_size);
- if (segment == NULL) V8::FatalProcessOutOfMemory("Zone");
+ if (segment == NULL) {
+ V8::FatalProcessOutOfMemory("Zone");
+ return NULL;
+ }
// Recompute 'top' and 'limit' based on the new segment.
Address result = RoundUp(segment->start(), kAlignment);