Not defining function if leak hunter is disabled (to remove "function not used" warning)