aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSorah Fukumori <[email protected]>2025-01-14 02:01:05 +0000
committerNIIBE Yutaka <[email protected]>2025-01-14 02:01:05 +0000
commit137481fa1002c417cd2c0661b9eefd893b0149d3 (patch)
tree19aff76392305a08cd4a1cdb6538ccb948b243a6
parentbuild: Also emit the size of the w32 source tarball (diff)
downloadgnupg-137481fa1002c417cd2c0661b9eefd893b0149d3.tar.gz
gnupg-137481fa1002c417cd2c0661b9eefd893b0149d3.zip
agent: Fix a memory leak.
* agent/findkey.c (read_key_file): Free BUF. -- Fixes-commit: 434a641d40cbff82beb9f485e0adca72419bfdf2 Signed-off-by: Sorah Fukumori <[email protected]>
-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