Bug 517299 - Allocator mismatch (calloc+delete) for class TraceRecorder and LirWriter, r=gal.

This commit is contained in:
Graydon Hoare 2009-09-21 14:06:42 -07:00
parent 7ac990150d
commit e102fc5e1c
2 changed files with 12 additions and 0 deletions

View File

@ -987,6 +987,12 @@ public:
return calloc(1, size);
}
inline void
operator delete(void *p)
{
free(p);
}
JS_REQUIRES_STACK
TraceRecorder(JSContext* cx, VMSideExit*, nanojit::Fragment*, TreeInfo*,
unsigned stackSlots, unsigned ngslots, JSTraceType* typeMap,

View File

@ -1019,6 +1019,12 @@ namespace nanojit
return calloc(1, size);
}
inline void
operator delete(void *p)
{
free(p);
}
LirWriter *out;
LirWriter(LirWriter* out)