[security-dev] updateCredential will leak