summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-12-04 16:39:01 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-12-04 17:26:39 +0100
commit536622e7d1b9944a4455be4d4c3e83146659acbb (patch)
tree277a6ea27c2842dfce62c3ff4e0058a94529ab7c
parentf156c340b4283593c858a3ae6dc7ec9702381331 (diff)
downloadsamba-536622e7d1b9944a4455be4d4c3e83146659acbb.tar.gz
samba-536622e7d1b9944a4455be4d4c3e83146659acbb.tar.bz2
samba-536622e7d1b9944a4455be4d4c3e83146659acbb.zip
s4:dsdb/samdb/cracknames.c - fix another memory leak
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat Dec 4 17:26:39 CET 2010 on sn-devel-104
-rw-r--r--source4/dsdb/samdb/cracknames.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/cracknames.c b/source4/dsdb/samdb/cracknames.c
index 0b7b6ed1c5..1964e134f0 100644
--- a/source4/dsdb/samdb/cracknames.c
+++ b/source4/dsdb/samdb/cracknames.c
@@ -649,6 +649,7 @@ WERROR DsCrackNameOneName(struct ldb_context *sam_ctx, TALLOC_CTX *mem_ctx,
strcspn(principal->name.name_string.val[1], "."));
if (computer_name == NULL) {
krb5_free_principal(smb_krb5_context->krb5_context, principal);
+ free(unparsed_name_short);
return WERR_NOMEM;
}