- ImageKit_CleanupError() which frees heap memory required for per-thread errors.