summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-01-07 20:54:31 +0000
committerVolker Lendecke <vlendec@samba.org>2003-01-07 20:54:31 +0000
commit173856a77dbd77af2a01c37bdc3e89ada264f420 (patch)
tree585497b751eb7c6b8aff8e53956eb91e7079fb66
parent3cbb08978207f68ccf3dcbec9c4912c3546cf0e0 (diff)
downloadsamba-173856a77dbd77af2a01c37bdc3e89ada264f420.tar.gz
samba-173856a77dbd77af2a01c37bdc3e89ada264f420.tar.bz2
samba-173856a77dbd77af2a01c37bdc3e89ada264f420.zip
Fix memory leak. Thanks, Herb!
Volker (This used to be commit 8915d59a5939b78a177dcd3e075a122e68e8c64a)
-rw-r--r--source3/utils/pdbedit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c
index 8aec35ac39..cd4cdfddb4 100644
--- a/source3/utils/pdbedit.c
+++ b/source3/utils/pdbedit.c
@@ -365,6 +365,7 @@ static int new_machine (struct pdb_context *in, const char *machine_in)
passwd_free(&pwd);
return -1;
}
+ passwd_free(&pwd);
} else {
if (!NT_STATUS_IS_OK(pdb_init_sam (&sam_pwent))) {
fprintf(stderr, "Could not init sam from pw\n");