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:
parent
ba5f557b5d
commit
da731c1c58
@ -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))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user