Skip to content

Commit

Permalink
fix possible memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
willamowius committed Mar 31, 2019
1 parent a6564ed commit 15879ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gkauth.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,10 @@ int SimplePasswordAuth::Check(
if (authData.m_requestingEP) {
H225_ArrayOf_AliasAddress aliases = authData.m_requestingEP->GetAliases();
GkH235Authenticators * auth = authData.m_requestingEP->GetH235Authenticators();
return doCheck(request, &aliases, auth);
bool result = doCheck(request, &aliases, auth);
// save auth in case it has been newly allocated - does nothing if its the same we had before
authData.m_requestingEP->SetH235Authenticators(auth);
return result;
} else {
return e_fail;
}
Expand Down

0 comments on commit 15879ec

Please sign in to comment.