1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Windows, compile : reenable previously disabled warning C4291

no matching operator delete found; memory will not be freed if initialization throws an exception

Added a no-op delete() for MEM_ROOT based placement-new()
This commit is contained in:
Vladislav Vaintroub
2018-02-06 23:32:02 +00:00
parent 282b652028
commit 8fe04a3df3
9 changed files with 12 additions and 5 deletions

View File

@ -2115,6 +2115,7 @@ public:
*/
static void *operator new(size_t size, THD *thd) throw();
static void operator delete(void *ptr, size_t size) { TRASH(ptr, size); }
static void operator delete(void *, THD *) throw(){}
Virtual_tmp_table(THD *thd)
{