From 0e7d1aae2f4767d3744aeb1eab15ed793e71db74 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 7 Jun 2008 08:51:35 +0200 Subject: Fix a memleak in secrets_fetch_afs_key Coverity ID 570 (This used to be commit 0f52dc3f7eae7e87b8a71bd099b99b0b3e76a387) --- source3/passdb/secrets.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/passdb/secrets.c') diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c index ffe9e45036c..fc01aa19b97 100644 --- a/source3/passdb/secrets.c +++ b/source3/passdb/secrets.c @@ -1063,6 +1063,8 @@ bool secrets_fetch_afs_key(const char *cell, struct afs_key *result) result->kvno = ntohl(result->kvno); + SAFE_FREE(keyfile); + return True; } -- cgit v1.2.1