1
0
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:
serg@serg.mylan
2004-11-28 15:53:17 +01:00
parent 5b3f7c59ec
commit f09429a4df
11 changed files with 32 additions and 29 deletions

View File

@ -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; }