Skip to content

Commit

Permalink
NTLM memleak
Browse files Browse the repository at this point in the history
Originally by Christos Zoulas.
  • Loading branch information
nicowilliams committed Mar 17, 2017
1 parent c0ce49c commit ec4a2fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/gssapi/ntlm/creds.c
Expand Up @@ -60,9 +60,11 @@ _gss_ntlm_inquire_cred
n->domain = strdup(c->domain);
}
if (n == NULL || n->user == NULL || n->domain == NULL) {
if (n)
if (n) {
free(n->user);
free(n);
free(n->domain);
free(n);
}
*minor_status = ENOMEM;
return GSS_S_FAILURE;
}
Expand Down

0 comments on commit ec4a2fe

Please sign in to comment.