@@ -3290,10 +3290,6 @@ Void_t *public_mALLOc(size_t bytes)
struct malloc_state *ar_ptr;
Void_t *victim;
- __malloc_ptr_t(*hook) (size_t, __const __malloc_ptr_t) = force_reg(dlmalloc_hook);
- if (hook != NULL)
- return (*hook) (bytes, RETURN_ADDRESS(0));
-
victim = tcache_malloc(bytes);
if (victim)
return victim;
@@ -3315,12 +3311,6 @@ void public_fREe(Void_t * mem)
{
mchunkptr p; /* chunk corresponding to mem */
- void (*hook) (__malloc_ptr_t, __const __malloc_ptr_t) = force_reg(dlfree_hook);
- if (hook != NULL) {
- (*hook) (mem, RETURN_ADDRESS(0));
- return;
- }
-
if (mem == 0) /* free(0) has no effect */
return;