[Live-devel] delete -> delete[] in DigestAuthentication.cpp

S Mathur yetanotherid at gmail.com
Wed Jun 21 15:08:39 PDT 2006


Hi Ross,

In DigestAuthentication.cpp, the following 4 delete operations should
be changed to delete[]

void Authenticator::resetRealmAndNonce() {
  delete fRealm; fRealm = NULL;
  delete fNonce; fNonce = NULL;
}

void Authenticator::resetUsernameAndPassword() {
  delete fUsername; fUsername = NULL;
  delete fPassword; fPassword = NULL;
  fPasswordIsMD5 = False;
}

All four were returned by strDup().

Thanks,
Mathur


More information about the live-devel mailing list