Swapping the normal allocator for the temp one and clean after use: