From 682ec284b189e12de4fff9f000b12960a69d90cb Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 7 Jun 2008 08:50:02 +0200 Subject: [PATCH] Fix a memleak in secrets_fetch_trust_account_password_legacy Coverity ID 571 (cherry picked from commit a551773e34af1c118f77784a285e1b885da8655d) --- source/passdb/secrets.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/passdb/secrets.c b/source/passdb/secrets.c index 04603fdf093..8bc374f9a85 100644 --- a/source/passdb/secrets.c +++ b/source/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; } -- 2.11.4.GIT