1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

Memory leak fixes from Chere Zhou <czhou@isilon.com>.

Jeremy.
(This used to be commit 201bcc8ed2)
This commit is contained in:
Jeremy Allison 2008-05-27 12:27:57 -07:00
parent 6811dc3fc2
commit d5d4a9511d
2 changed files with 5 additions and 0 deletions

View File

@ -649,6 +649,10 @@ bool kerberos_secrets_store_salting_principal(const char *service,
SAFE_FREE(princ_s);
SAFE_FREE(unparsed_name);
if (princ) {
krb5_free_principal(context, princ);
}
if (context) {
krb5_free_context(context);
}

View File

@ -181,6 +181,7 @@ bool ntv2_owf_gen(const uchar owf[16],
if (!push_ucs2_allocate(&domain, domain_in, &domain_byte_len)) {
DEBUG(0, ("push_uss2_allocate() for domain failed: %s\n",
strerror(errno)));
SAFE_FREE(user);
return False;
}