summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2020-03-10 20:36:18 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2020-03-10 20:36:18 +0100
commit91ba789aaf8feffb9ad377c740759b2359c5a094 (patch)
treefce06ba3d9af0c06495cb051e2ad32665b2bd34b
parent7676208ce6c067891d9d626a3b19400a553ea9ae (diff)
downloadmariadb-git-91ba789aaf8feffb9ad377c740759b2359c5a094.tar.gz
fix for VALGRIND build
-rw-r--r--mysys/my_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_alloc.c b/mysys/my_alloc.c
index 3120ee50a59..f5537885227 100644
--- a/mysys/my_alloc.c
+++ b/mysys/my_alloc.c
@@ -186,7 +186,7 @@ void *alloc_root(MEM_ROOT *mem_root, size_t length)
});
length+=ALIGN_SIZE(sizeof(USED_MEM));
- if (!(next = (USED_MEM*) my_malloc(length,
+ if (!(next = (USED_MEM*) my_malloc(mem_root->m_psi_key, length,
MYF(MY_WME | ME_FATAL |
MALLOC_FLAG(mem_root->block_size)))))
{