Loading...
--- libmalloc/libmalloc-715.140.5/tests/malloc_realloc_large.c
+++ libmalloc/libmalloc-715.120.13/tests/malloc_realloc_large.c
@@ -50,14 +50,7 @@
void *ptr2 = realloc(ptr1, size2);
T_ASSERT_TRUE(memchk(ptr2, 'A', size2), "contents unchanged after realloc");
T_ASSERT_LE(size2, malloc_size(ptr2), "realloc LARGE smaller");
-
- bool has_sanitizer = false;
-#if CONFIG_SANITIZER
- has_sanitizer = malloc_sanitizer_is_enabled();
-#endif
- if (!has_sanitizer) {
- T_ASSERT_EQ(ptr1, ptr2, "realloc LARGE smaller in-place");
- }
+ T_ASSERT_EQ(ptr1, ptr2, "realloc LARGE smaller in-place");
free(ptr2);
// Large allocation grow in place