1
0
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:
Marko Mäkelä
2019-02-01 09:14:10 +02:00
parent 6051842cd0
commit 94e6a226a3

View File

@@ -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 */