git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba5f557
)
Call TALLOC_FREE() before we return otherwise we will never free sam_account
author
Michele Baldessari
<michele@acksyn.org>
Mon, 10 Sep 2012 20:31:11 +0000
(13:31 -0700)
committer
Jeremy Allison
<jra@samba.org>
Mon, 10 Sep 2012 21:48:00 +0000
(14:48 -0700)
Signed-off-by: Jeremy Allison <jra@samba.org>
source3/utils/pdbedit.c
patch
|
blob
|
history
diff --git
a/source3/utils/pdbedit.c
b/source3/utils/pdbedit.c
index 8a3551bf6bbf689ef49cd7c5d44a6f2747f95c01..908f0ba0afed40f345f4e2b248222376d9a06f71 100644
(file)
--- 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))) {