summaryrefslogtreecommitdiff
path: root/source3/utils/pdbedit.c
diff options
context:
space:
mode:
authorMichele Baldessari <michele@acksyn.org>2012-09-10 13:31:11 -0700
committerJeremy Allison <jra@samba.org>2012-09-10 14:48:00 -0700
commitda731c1c587dc081d81f03f08920791039c47d0e (patch)
tree0961b6b512b27f2ce136a8c303a6847b9ed75276 /source3/utils/pdbedit.c
parentba5f557b5db9fbc9a59d742d2612b397b5525266 (diff)
downloadsamba-da731c1c587dc081d81f03f08920791039c47d0e.tar.gz
samba-da731c1c587dc081d81f03f08920791039c47d0e.tar.bz2
samba-da731c1c587dc081d81f03f08920791039c47d0e.zip
Call TALLOC_FREE() before we return otherwise we will never free sam_account
Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/utils/pdbedit.c')
-rw-r--r--source3/utils/pdbedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c
index 8a3551bf6b..908f0ba0af 100644
--- a/source3/utils/pdbedit.c
+++ b/source3/utils/pdbedit.c
@@ -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))) {