Free memory in the mock array buffer allocator.
Turns out ASAN and valgrind notice if you leak 0 allocated bytes. R=jkummerow@chromium.org, jochen@chromium.org Review URL: https://codereview.chromium.org/306583006 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21562 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
18ac428252
commit
1a26ea6a02
@ -1471,7 +1471,8 @@ class MockArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
|
||||
virtual void* AllocateUninitialized(size_t length) V8_OVERRIDE {
|
||||
return malloc(0);
|
||||
}
|
||||
virtual void Free(void*, size_t) V8_OVERRIDE {
|
||||
virtual void Free(void* p, size_t) V8_OVERRIDE {
|
||||
free(p);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user