mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Correct TRASH() macro usage
TRASH was mapped to TRASH_FREE and was supposed to be used for memory that should not be accessed anymore, while TRASH_ALLOC() is to be used for uninitialized but to-be-used memory. But sometimes TRASH() was used in the latter sense. Remove TRASH() macro, always use explicit TRASH_ALLOC() or TRASH_FREE().
This commit is contained in:
@ -11530,7 +11530,7 @@ public:
|
||||
}
|
||||
static void operator delete(void *ptr __attribute__((unused)),
|
||||
size_t size __attribute__((unused)))
|
||||
{ TRASH(ptr, size); }
|
||||
{ TRASH_FREE(ptr, size); }
|
||||
|
||||
Item *and_level;
|
||||
Item_func *cmp_func;
|
||||
|
Reference in New Issue
Block a user