summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSorah Fukumori <her@sorah.jp>2025-01-14 03:01:05 +0100
committerNIIBE Yutaka <gniibe@fsij.org>2025-01-14 03:01:05 +0100
commit137481fa1002c417cd2c0661b9eefd893b0149d3 (patch)
tree19aff76392305a08cd4a1cdb6538ccb948b243a6
parentbuild: Also emit the size of the w32 source tarball (diff)
downloadgnupg2-137481fa1002c417cd2c0661b9eefd893b0149d3.tar.xz
gnupg2-137481fa1002c417cd2c0661b9eefd893b0149d3.zip
agent: Fix a memory leak.
* agent/findkey.c (read_key_file): Free BUF. -- Fixes-commit: 434a641d40cbff82beb9f485e0adca72419bfdf2 Signed-off-by: Sorah Fukumori <her@sorah.jp>
-rw-r--r--agent/findkey.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/agent/findkey.c b/agent/findkey.c
index 8efb7b320..e78feaa9c 100644
--- a/agent/findkey.c
+++ b/agent/findkey.c
@@ -1184,6 +1184,7 @@ read_key_file (ctrl_t ctrl, const unsigned char *grip,
}
leave:
+ xfree (buf);
if (!err && r_keymeta)
*r_keymeta = pk;
else