mirror of
https://github.com/samba-team/samba.git
synced 2025-06-17 15:17:09 +03:00
Memory leak fixes from Chere Zhou <czhou@isilon.com>.
Jeremy.
This commit is contained in:
parent
7eeed8bb41
commit
201bcc8ed2
@ -649,6 +649,10 @@ bool kerberos_secrets_store_salting_principal(const char *service,
|
|||||||
SAFE_FREE(princ_s);
|
SAFE_FREE(princ_s);
|
||||||
SAFE_FREE(unparsed_name);
|
SAFE_FREE(unparsed_name);
|
||||||
|
|
||||||
|
if (princ) {
|
||||||
|
krb5_free_principal(context, princ);
|
||||||
|
}
|
||||||
|
|
||||||
if (context) {
|
if (context) {
|
||||||
krb5_free_context(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)) {
|
if (!push_ucs2_allocate(&domain, domain_in, &domain_byte_len)) {
|
||||||
DEBUG(0, ("push_uss2_allocate() for domain failed: %s\n",
|
DEBUG(0, ("push_uss2_allocate() for domain failed: %s\n",
|
||||||
strerror(errno)));
|
strerror(errno)));
|
||||||
|
SAFE_FREE(user);
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user