mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +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:
@ -247,7 +247,7 @@ class ACL_USER_BASE :public ACL_ACCESS
|
||||
public:
|
||||
static void *operator new(size_t size, MEM_ROOT *mem_root)
|
||||
{ return (void*) alloc_root(mem_root, size); }
|
||||
|
||||
static void operator delete(void *, MEM_ROOT *){}
|
||||
uchar flags; // field used to store various state information
|
||||
LEX_CSTRING user;
|
||||
/* list to hold references to granted roles (ACL_ROLE instances) */
|
||||
|
Reference in New Issue
Block a user