summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/secrets.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index d6a0e89bba..ffe9e45036 100644
--- a/source3/passdb/secrets.c
+++ b/source3/passdb/secrets.c
@@ -399,6 +399,7 @@ bool secrets_fetch_trust_account_password_legacy(const char *domain,
if (size != sizeof(*pass)) {
DEBUG(0, ("secrets were of incorrect size!\n"));
+ SAFE_FREE(pass);
return False;
}