safemalloc always resets the free'd memory, not only when PEDANTIC_SAFEMALLOC
This commit is contained in:
parent
062ac038df
commit
b66a13eeb8
@ -38,7 +38,7 @@ class Field
|
||||
public:
|
||||
static void *operator new(size_t size) {return (void*) sql_alloc((uint) size); }
|
||||
static void operator delete(void *ptr_arg, size_t size) {
|
||||
#ifdef PEDANTIC_SAFEMALLOC
|
||||
#ifdef SAFEMALLOC
|
||||
bfill(ptr_arg, size, 0x8F);
|
||||
#endif
|
||||
}
|
||||
|
@ -19,9 +19,9 @@
|
||||
#pragma interface /* gcc class implementation */
|
||||
#endif
|
||||
|
||||
/* mysql standard class memoryallocator */
|
||||
/* mysql standard class memory allocator */
|
||||
|
||||
#ifdef PEDANTIC_SAFEMALLOC
|
||||
#ifdef SAFEMALLOC
|
||||
#define TRASH(XX,YY) bfill((XX), (YY), 0x8F)
|
||||
#else
|
||||
#define TRASH(XX,YY) /* no-op */
|
||||
|
Loading…
x
Reference in New Issue
Block a user