mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
safemalloc always resets the free'd memory, not only when PEDANTIC_SAFEMALLOC
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user