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:
parent
6811dc3fc2
commit
d5d4a9511d
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user