mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
protection: TRASH in delete
fixed a bug that it discovered
This commit is contained in:
@ -72,9 +72,9 @@ public:
|
||||
static void *operator new(size_t size, MEM_ROOT *mem_root)
|
||||
{ return (void*) alloc_root(mem_root, (uint) size); }
|
||||
static void operator delete(void *ptr_arg,size_t size)
|
||||
{}
|
||||
{ TRASH(ptr_arg, size); }
|
||||
static void operator delete(void *ptr_arg,size_t size, MEM_ROOT *mem_root)
|
||||
{}
|
||||
{ TRASH(ptr_arg, size); }
|
||||
~String() { free(); }
|
||||
|
||||
inline void set_charset(CHARSET_INFO *charset) { str_charset= charset; }
|
||||
|
Reference in New Issue
Block a user