1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

Call TALLOC_FREE() before we return otherwise we will never free sam_account

Signed-off-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Michele Baldessari 2012-09-10 13:31:11 -07:00 committed by Jeremy Allison
parent ba5f557b5d
commit da731c1c58

View File

@ -965,8 +965,8 @@ static int delete_machine_entry(const char *machinename)
if (!pdb_getsampwnam(samaccount, name)) {
fprintf (stderr,
"machine %s does not exist in the passdb\n", name);
return -1;
TALLOC_FREE(samaccount);
return -1;
}
if (!NT_STATUS_IS_OK(pdb_delete_sam_account(samaccount))) {