From 817151c87ff8d3a9c22f8aeccf70a37a9cd1a331 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 29 Nov 2006 06:15:28 +0000 Subject: r19943: Fix bug 4267 -- Thanks to David! (This used to be commit 714971b34aad01cd855484d550c41bc0265ef051) --- source3/passdb/pdb_ldap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3') diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index f1c1710028..fbcb0e4616 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -1593,12 +1593,14 @@ static NTSTATUS ldapsam_modify_entry(struct pdb_methods *my_methods, } if (push_utf8_allocate(&utf8_dn, dn) == (size_t)-1) { + SAFE_FREE(utf8_password); return NT_STATUS_NO_MEMORY; } if ((ber = ber_alloc_t(LBER_USE_DER))==NULL) { DEBUG(0,("ber_alloc_t returns NULL\n")); SAFE_FREE(utf8_password); + SAFE_FREE(utf8_dn); return NT_STATUS_UNSUCCESSFUL; } -- cgit