Revision: 21562
Author: [email protected]
Date: Wed May 28 11:00:11 2014 UTC
Log: Free memory in the mock array buffer allocator.
Turns out ASAN and valgrind notice if you leak 0 allocated bytes.
[email protected], [email protected]
Review URL: https://codereview.chromium.org/306583006
http://code.google.com/p/v8/source/detail?r=21562
Modified:
/branches/bleeding_edge/src/d8.cc
=======================================
--- /branches/bleeding_edge/src/d8.cc Tue May 27 15:16:42 2014 UTC
+++ /branches/bleeding_edge/src/d8.cc Wed May 28 11:00:11 2014 UTC
@@ -1471,7 +1471,8 @@
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);
}
};
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.