From: Michele Baldessari Date: Mon, 10 Sep 2012 20:31:11 +0000 (-0700) Subject: Call TALLOC_FREE() before we return otherwise we will never free sam_account X-Git-Tag: samba-4.0.0rc1~90 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da731c1c587dc081d81f03f08920791039c47d0e;p=thirdparty%2Fsamba.git Call TALLOC_FREE() before we return otherwise we will never free sam_account Signed-off-by: Jeremy Allison --- diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c index 8a3551bf6bb..908f0ba0afe 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))) {