1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +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

@ -1360,7 +1360,7 @@ public:
/* Table read plans are allocated on MEM_ROOT and are never deleted */
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,size_t size) {}
static void operator delete(void *ptr,size_t size) { TRASH(ptr, size); }
};
class TRP_ROR_INTERSECT;