Searched refs:free_hook (Results 1 – 7 of 7) sorted by relevance
38 void SetHooks(AllocHookFunc alloc_hook, FreeHookFunc free_hook) { in SetHooks() argument46 auto prev_free_hook = MallocHook::SetDeleteHook(free_hook); in SetHooks()47 if (free_hook) in SetHooks()
34 BASE_EXPORT void SetHooks(AllocHookFunc alloc_hook, FreeHookFunc free_hook);
423 void (*free_hook)(const void *); member438 auto hook = MFHooks[i].free_hook; in RunFreeHooks()445 void (*free_hook)(const void *)) { in InstallMallocFreeHooks()446 if (!malloc_hook || !free_hook) return 0; in InstallMallocFreeHooks()450 MFHooks[i].free_hook = free_hook; in InstallMallocFreeHooks()483 void (*free_hook)(const void *)) { in __sanitizer_install_malloc_and_free_hooks()484 return InstallMallocFreeHooks(malloc_hook, free_hook); in __sanitizer_install_malloc_and_free_hooks()
34 void (*free_hook)(const void *));
77 void (*free_hook)(const volatile void *));
36 void (*free_hook)(const volatile void *)),
479 FreeHook* free_hook = free_hook_; in ReallocHookIfEnabled() local480 if (UNLIKELY(allocation_hook && free_hook)) { in ReallocHookIfEnabled()481 free_hook(old_address); in ReallocHookIfEnabled()