Fix 2MB leak on core unload.