Commit 70b90772 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-32364 fixup: crash in ut_dontdump()

parent f0590db5
...@@ -1078,9 +1078,8 @@ static inline void *ut_malloc_dontdump(size_t n_bytes, ...) ...@@ -1078,9 +1078,8 @@ static inline void *ut_malloc_dontdump(size_t n_bytes, ...)
{ {
void *ptr = my_large_malloc(&n_bytes, MYF(0)); void *ptr = my_large_malloc(&n_bytes, MYF(0));
ut_dontdump(ptr, n_bytes, true);
if (ptr) { if (ptr) {
ut_dontdump(ptr, n_bytes, true);
os_total_large_mem_allocated += n_bytes; os_total_large_mem_allocated += n_bytes;
} }
return ptr; return ptr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment