From d034ba5ce18fb7f62060a6eab7b3563c5ff7b859 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 7 Jan 2003 20:55:43 +0000 Subject: Fix memory leak. Thanks, Herb! Volker (This used to be commit 434e496289ac21e516b22d91c4f52c0a6674214f) --- source3/utils/pdbedit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/utils') diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c index 60022d007d..09493f9a89 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"); -- cgit