Skip to content

Commit 70b9077

Browse files
committed
MDEV-32364 fixup: crash in ut_dontdump()
1 parent f0590db commit 70b9077

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

storage/innobase/include/ut0new.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,9 +1078,8 @@ static inline void *ut_malloc_dontdump(size_t n_bytes, ...)
10781078
{
10791079
void *ptr = my_large_malloc(&n_bytes, MYF(0));
10801080

1081-
ut_dontdump(ptr, n_bytes, true);
1082-
10831081
if (ptr) {
1082+
ut_dontdump(ptr, n_bytes, true);
10841083
os_total_large_mem_allocated += n_bytes;
10851084
}
10861085
return ptr;

0 commit comments

Comments
 (0)