mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
my_malloc(): Invoke TRASH_ALLOC even WITH_SAFEMALLOC=OFF
This commit is contained in:
@@ -117,6 +117,7 @@ void *my_malloc(size_t size, myf my_flags)
|
||||
MY_TEST(my_flags & MY_THREAD_SPECIFIC));
|
||||
update_malloc_size(size + MALLOC_PREFIX_SIZE,
|
||||
MY_TEST(my_flags & MY_THREAD_SPECIFIC));
|
||||
TRASH_ALLOC(point, size);
|
||||
DBUG_EXECUTE_IF("simulate_out_of_memory",
|
||||
{
|
||||
/* my_free() handles memory accounting */
|
||||
|
Reference in New Issue
Block a user